%@ Language=VbScript%> <% Option Explicit %> <% '------------------------------------------------------------------------- ' services_noprop.asp : Displays the properties when thers is no specific ' properties page ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description ' 12-mar-2001 Creation date ' 15-mar-2001 Modified date '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- 'frame work variables Dim rc Dim page '------------------------------------------------------------------------- 'Form Variables '------------------------------------------------------------------------- Dim F_strServiceSysName 'service name from system- Ex: w3svc Dim F_strServiceName 'service name - Label Dim F_strServiceStatus 'service status Dim F_strStartup 'service startup type Dim F_strServiceDescription 'service description Dim F_strTask 'task from query string enable/disable 'Constants Const CONST_SERVICES_CONTAINER = "SERVICES" 'this piece of code is to be placed in init function. 'for the page title it is moved to here - for localised display name. F_strServiceSysName = Request.QueryString ("PKey") 'Get the Service properties - for the page title it is moved to here getServiceProp(F_strServiceSysName) ' Create Page rc = SA_CreatePage( F_strServiceName, "", PT_AREA, page ) ' Show page rc = SA_ShowPage( page ) '------------------------------------------------------------------------- 'Function: OnInitPage() 'Description: Called to signal first time processing for this page. ' Use this method to do first time initialization tasks 'Input Variables: PageIn,EventArg 'Output Variables: PageIn,EventArg 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnInitPage(ByRef PageIn, ByRef EventArg) OnInitPage = TRUE End Function '--------------------------------------------------------------------- ' Function name: OnServeAreaPage ' Description: Called when the page needs to be served. ' Input Variables: PageIn, EventArg ' Output Variables: PageIn,EventArg ' Return Values: TRUE to indicate no problems occured. FALSE to indicate errors. ' Returning FALSE will cause the page to be abandoned. ' Global Variables: None 'Called when the page needs to be served. Use this method to serve content. '--------------------------------------------------------------------- Public Function OnServeAreaPage(ByRef PageIn, ByRef EventArg) Call ServeCommonJavaScript()%>
|