Share via


Basic ASP Page Structure

banner art

Previous Next

Basic ASP Page Structure

It is recommended that you use the following structure when creating an ASP property page. This is the structure used by the ASP page included with the sample event notification plug-in. For more information see the ContextSample.asp file located in the <%systemroot%>\system32\windows media\server\admin\web\wmssecure\pages\plugins folder. This folder is created when you install the Windows Media Services Web Administrator. By default, the Web administrator is not installed. To install it, click Details on the Windows Media Services Setup dialog box, click Windows Media Services Administrator for the Web, and click OK.

' Identify the standard include files.
<%@ Language=VBScript CODEPAGE=65001 %>
<!--#include file="include/wmsLocStrings.inc"-->
<!--#include file="include/wmsServerHash.inc"-->
<!--#include file="include/wmsPlugins.inc"-->
<!--#include file="include/wmsHeader.inc"-->
<!--#include file="include/wmsPageBanner.inc"-->
<!--#include file="include/wmsError.inc"-->
<!--#include file="plugin_loading.inc"-->

' Retrieve the plug-in object and the administration interface.
ConnectToPlugin
ConnectToPluginAdmin

' Initialize the error handler.
BeginErrorHandling

' Write the server-side script.
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''
    '                 server-side script                 '
    '                                                    '
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''

' Write client-side HTML.
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''
    '                 client-side HTML                   '
    '                                                    '
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''

' Handle errors.
AlertUserWithPopupErrorDialog
OnErrorGoBack 
EndErrorHandling "asp_page_name" 
on error resume next

' Do clean-up.
PluginsASPCleanup

The functions highlighted in the preceding template can be found in the include files identified at the beginning of the template. These files are loaded into the <%systemroot%>\system32\windows media\server\admin\web\wmsecure\pages\plugins\include folder when the Windows Media Services SDK is installed. For more information about the include files, see Including Files in the ASP Page.

See Also

Previous Next