% @Language=VbScript%> <% Option Explicit %> <% '---------------------------------------------------------------------------- ' nicRename_prop.asp: change the connecion name ' ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description '28-Feb-01 Creation date '09-Mar-01 Modified date '----------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim G_objService 'Object to SWBEM service Dim G_strConnName 'Connection name Dim G_intAdapterID 'Adapter ID Dim page 'Variable that receives the output page object when 'creating a page Dim rc 'Return value for CreatePage 'Create property page rc=SA_CreatePage(L_RENAMETASKTITLE_TEXT,"",PT_PROPERTY,page) 'Serve the page If(rc=0) then SA_ShowPage(Page) End if '------------------------------------------------------------------------- '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) G_strConnName = GetConnectionName() ' Gets the connection name OnInitPage = True End Function '------------------------------------------------------------------------- 'Function: OnServePropertyPage() 'Description: Called when the page needs to be served.Use this ' method to serve content 'Input Variables: PageIn,EventArg 'Output Variables: PageIn,EventArg 'Returns: True/False 'Global Variables: G_*,L_* '------------------------------------------------------------------------- Public Function OnServePropertyPage(ByRef PageIn,Byref EventArg) Call ServeCommonJavaScript() %>
| <%=Server.HTMLEncode(G_strConnName)%> | |||
| <%=L_CONNNAME_TEXT%> | |||