|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Viewing ASP page locally
I've just started learning ASP and I'm wondering if there is anyway I can preview my pages locally.
This is the page that I am testing: Code:
<html> <body bgcolor="yellow"> <center> <h2>Hello W3Schools!</h2> <p><%Response.Write(now())%></p> </center> </body> </html> So I've got that saved as an .asp file on my computer and I want to view it without having to upload it to my web host. I've downloaded the microsoft .net framework sdk, is there anything else I need or anything I can use or enable or something? Sorry for such a simple question. I'm a pretty experienced programmer and I can use html fine, I'm just clueless when it comes to internet, servers and all that stuff. Thanks in advance |
|
#2
|
||||
|
||||
|
you need to install IIS if you are running a windows XP Pro machine,
you can install it from the add/remove windows components screen in the CP. have a look at this site: http://www.webwizguide.com/asp/tuto...s_winXP_pro.asp hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
|||
|
|||
|
Quote:
Hmmm, I've installed that now and done everything on that site but it still doesn't work :-/ Internet explorer just opens the .asp file as a plain text file and firefox opens it right but the <%Response.Write(now())%> does nothing... (It did this before installing too btw)Any ideas? |
|
#4
|
||||
|
||||
|
if you site is under this folder:
Code:
c:\inetpub\wwwroot\siteOne\page.asp then use this in the URL bar: Code:
http://localhost/siteOne/page.asp hope this helps |
|
#5
|
|||
|
|||
|
Quote:
Thanks so much, that worked. But now I'm having another (small but annoying) problem. I can't seem to clear IEs cache. When I edit a page and go to load it back, it keeps coming up as the original (un-editted) page. I've tried going to InternetOptions->Delete Files, and I've also tried removing files manually and even using Disk Cleanup but none of them seem to fully clear the cache, I restart IE everytime I do one of these as well! If I simply change the name of the editted file then it works but it's really annoying to have to do that to see every change. |
|
#6
|
|||
|
|||
|
Quote:
Tools > internet options > temp internet files > settings > "check for newer versions of stored pages" try selecting every visit to the page. It could just be that your deleting the wrong cache in windows depending on a few things |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Viewing ASP page locally |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|