<%@ Language=VBScript %> <%Option Explicit%> ASP Script Component Test Page

ASP Test’ Script Component Test Page

This page will test the server to determine whether or not it supports Windows Script Components. These are COM components written in a scripting language such as Javascript or VBScript, and they do not need to be explicitly ‘registered’ with the operating system the way DLLs and regular COM components do.

Testing now

If the following paragraph says ‘Script Component Success!’ then this web server can use script components. If it shows an error of any description, then it cannot use script components.

<% Dim testcontrol Set testcontrol = GetObject ("script:" & Server.MapPath ("ASPTest.WSC")) Response.Write (testcontrol.Test) %>

Test 1 Complete

Testing now

If the following paragraph says ‘ASPNetScript Component Success!’ then this web server can use ASPNetScript to fetch URLs. If it shows an error of any description, then it cannot use this particular script component.

<%=testcontrol.TestNetScript%>

Test 2 Complete

More information on script components can be found at http://msdn.microsoft.com/scripting/.


This test was downloaded from ASPForums.com.