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

Simple ASP Not Working 1

Status
Not open for further replies.

OrWolf

MIS
Mar 19, 2001
291
I've created extensive ASP pages in the past, however today I'm trying to pick it up again and nothing is working. It's probably something extremely simple. Will someone please point me in the right direction.

The following code comes from test.asp. When I open it with IE 6, the only thing displayed is Hello World. There are several response.write statement in the hope that at least one of them will work. What's wrong?

<html>
<body>
<%Response.write &quot;This is my first response!&quot;%>
Hello World
<%response.write(&quot;This site has been visited &quot;)%>
</body>
</html>
<%response.write(&quot;This site has been visited &quot;)%>
 
[tt]I have no problem viewing all responses.[/tt]
[pc3]
[thumbsup2]
 
Any idea why it wouldn't show in my browser window? If I paste in the above text in a new text file and rename it something.asp I just get 'Hello World'.
 
Hi

Are you opening the file using a http protocol?

Code:
[URL unfurl="true"]http://localhost/test.asp[/URL]

If you don't then the asp.dll won't process the response.writes Derren
[Mediocre talent - spread really thin]
 
I have to agree with Derren here. It sounds like it isn't getting run through IIS. If you just test preview in IE from say, frontpage, then it won't show the response.write commands becuase they weren't processed by the asp.dll.

How are you testing the page?
 
You were correct. The preview was via the drive path. Thanks for the follow-up. I'm embarrassed that I hadn't seen it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top