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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to view ASP pages in a browser.

ASP-Enabled Web Server

How to view ASP pages in a browser.

by  ejolmst  Posted    (Edited  )
Active Server Pages cannot be viewed in a web browser by typing in the file address in the browser as c:\inetpub\wwwroot\default.asp like you can with an HTML file as c:\inetpub\wwwroot\default.htm because an asp page MUST be processed and rendered by the WEB SERVER!
SO......In order to view or test your asp page, you must view the page in your browser as it is served or processed by the web server by typing into the browser address a URL which calls upon your web server such as your local web server host which was hopefully included in your installation of Windows 2000 Pro. (PWS is your personal web server)
To do this, you call your local web host as follows:
http://localhost/default.asp
This refers to a default.asp file which is residing on the web root which located at c:\inetpub\wwwrootNow, if your default web site has the default documents set to default.htm, followed by default.asp in that order, the server will first serve the default.htm file if it is found at that location, if it is not present, then it will next look to see if default.asp is located there. If it is, then that is the document that will be served by the server if you simply refer to the URL as http://localhost/
You can set the default documents and the order to serve them in your Internet Service Manager.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top