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

Help - Response.write

Status
Not open for further replies.

KathyJones

Programmer
Aug 16, 2001
15
US
Hello there!
Im brand new to ASP. I m trying to execute this one, but im not able to get any output on my browser except for the title, sample.asp. Why am i not getting the "Hello"
Do I need to set something in the browser? Help!

<html>
<head>
<title>sample.asp</title>
</head>
<%
response.write &quot;Hello&quot;
%>
</body>
</html>
 
Is your page named with the &quot;.asp&quot; extension rather than &quot;.htm&quot;?

That's how the server knows it needs to process the page before displaying it.
 
Also, you can't just view the page locally on your machine. The HTML will show up, but not the ASP script stuff. You need to upload the page to the server, so that the Active SERVER page can be processed.

Hope these tips help.
 
You also need to declare your page language like this:

<%@language=vbscript%>

at the very top so that it will look like this:

<%@language=vbscript%>
<html>
<head>
<title>sample.asp</title>
</head>
<%
response.write &quot;Hello&quot;
%>
</body>
</html>
penny.gif
penny.gif
 
Yes, its a .asp file. The problem is that, it shows even textbox, combo, the titles, etc., the problem is only with response.write
I tried declaring the page language, (abv code by link9)too. But it doesnt help.
Is there anything i should set in the Internet Manager?
 
Please reassure us:

You are viewing the page uploaded and accessed through the server ( not locally through Frontpage?

Textbox, combo, titles, etc. can be straight HTML elements that can be viewed locally (through Frontpage or whatever).

Response.write is an ASP element that must be processed by the server.
 
One more outside shot, if the previous posts don't solve it...

Your internet server must also support ASP. Is it Microsoft Internet Information Server? Or Apache with Chilisoft?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top