469,917 Members | 1,731 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

ASP Blank Page

88
Hi, I just set up IIS on my personal computer to start trying to learn it and I am trying to get your basic hello world to display and all I get is a blank page.

This is my source code when I do a "view source"

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3.  
  4. <%
  5. response.write("Hello World!")
  6. %>
  7.  
  8. </body>
  9. </html>
I double checked my setup and I have ASP pages selected.....I just get a blank page that says its been loaded. What did I not do right? I'm running Windows Vista and IIS 6
Oct 12 '07 #1
7 1550
fperri
88
I also saved the asp file in a folder I placed in the inetpub/wwwroot/ folder.
Oct 12 '07 #2
What did you put on your browser address bar?
Oct 12 '07 #3
Even better, what is the exact name and path of the file, and what did you put in your address bar?
Oct 12 '07 #4
fperri
88
C:\inetpub\wwwroot\testing\test.asp
Oct 12 '07 #5
if the path is C:\inetpub\wwwroot\testing\test.asp

then you should be able to look at the file by putting on your web browser:
http://localhost/testing/test.asp

if that doesn't work, you might want to make sure that the testing directory is configured to work in ur IIS Manager.

Hope this helps
Oct 12 '07 #6
jhardman
3,406 Expert 2GB
C:\inetpub\wwwroot\testing\test.asp
What daniel is getting at is that the server needs to open the file and send it to the browser. If the browser opens the file it will give you the un-interpreted code. Typing the address as "...localhost..." into the browser ensures that the browser asks for the file from the server rather than just opening it directly. notice that this problem only occurs when the server and the browser are on the same computer.

Jared
Oct 14 '07 #7
fperri
88
I typed it in like you said and it worked :) Thank you. Also, thanks for the explaination, I need to understand why as much as how. I appreciate your help.
Oct 17 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by dmcconkey | last post: by
6 posts views Thread by Melissa | last post: by
6 posts views Thread by noway | last post: by
4 posts views Thread by sid | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.