|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HELP -- Having problems running asp files on iis
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 %> <!-- WARNING! 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. Thanks. --> <html> <head> <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" Else %> |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Development Software > HELP -- Having problems running asp files on iis |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|