I installed iis on xp pro. I have also installed sqlserver 2000.

when I run asp / vbscript, just the the code gets displayed
I am not sure why. can anyone help
here is a sample of the code.

<%@ Language = "VBScript" %>
<% Response.Buffer = true %>

Please do not alter this file. It may be replaced if you upgrade your web server
If you want to use it as a template, we recommend renaming it, and modifying the new file.


<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">


Dim strServername, strLocalname, strServerIP

strServername = LCase(Request.ServerVariables("SERVER_NAME")) ' Server's name
strServerIP = LCase(Request.ServerVariables("LOCAL_ADDR")) ' Server's IP address
strRemoteIP = LCase(Request.ServerVariables("REMOTE_ADDR")) ' Client's IP address

' If the querystring variable uc <> 1, and the user is browsing from the server machine,
' go ahead and show them localstart.asp. We don't want localstart.asp shown to outside users.

If Request("uc") <> 1 And (strServername = "localhost" Or strServerIP = strRemoteIP) Then
Response.Redirect "localstart.asp"