Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get IIS5 to recognise asp pages

Status
Not open for further replies.

bobej

Technical User
Jan 24, 2002
133
GB
How do I get IIS5 to recognise asp pages
 
Cant remember to be honest but front page server extensions comes to mind
 
You don't need to do anything with IIS. Accessing ASP pages is done through the code. Actually, you DO NOT want to use FrontPage to write or access ASP code and/or pages, use only a text editor.
Example: copy and paste this code into notepad, save it as GetIP.asp, copy it up to a website and access the file through IE. should return your IP address and a bunch of other info using just the server variables.....

<%@language=vbscript%>
<%
IP = Request.ServerVariables("REMOTE_ADDR")
HOST = Request.ServerVariables("REMOTE_HOST")
response.write "<font face='Verdana' color='#FF0000'><b>Request.ServerVariables(""REMOTE_ADDR"") = " & IP & "</b></font><br><font face='Verdana' color='#FF0000'><b>Request.ServerVariables(""REMOTE_HOST"") = " & HOST & "</b></font><br><hr><br><br>Here's the rest of the Server Variables pulled from you...<br><br>"

Dim ServerVariable
For Each ServerVariable In Request.ServerVariables
%>
<b><%= ServerVariable %></b> = <%= Request.ServerVariables(ServerVariable) %> <br>
<%
Next
%>


-=Frank=-
 
/me shudders at the thought of FrontPage or FrontPage Extensions. It's truly an administrative nightmare.

Keith
 
Issue now resolved

Thanks to all who have contributed

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top