Forum Moderators: open

Message Too Old, No Replies

Response.Write

         

larryjf

2:56 am on Mar 30, 2005 (gmt 0)

10+ Year Member



I can't get this script to work...

<%
strText = "hello"
Response.Write strText
%>

or even...

<%
Response.Write "hello"
%>

I know this should be very simple, but i can't get it to work.

mattglet

3:26 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How is it "not working"? Please provide an error, or at least a description. This will allow for better answers from the community.

I'm going to guess that it's just outputting everything as text. Are you working on a local machine, or on a webhost's server? Either way, make sure you have full ASP capability, and that you are allowed to run ASP on the machine you're working on.

Welcome to WebmasterWorld! [webmasterworld.com]

larryjf

3:45 am on Mar 30, 2005 (gmt 0)

10+ Year Member



It's not doing anything. No error, and no text displayed.

I tried it on my local machine and on a non-local server. It did not work on either.

I should have full ASP capability as i have run many other ASP programs from these servers.

That's the part that's driving me crazy, this should be so simple.

defanjos

4:00 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry for asking, but, does your page have a ".asp" extension?

Easy_Coder

4:08 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And if it does have an .asp extension as defanjos asks then do a viewsource to determine if you page is outputting raw asp. You'll want to let your host know that your pages are not processing asp of that's the case.

txbakers

4:29 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried:

<%
Response.Write ("hello")
%>

with the parentheses?

larryjf

2:26 pm on Mar 30, 2005 (gmt 0)

10+ Year Member



It was the .asp extension.

Thanks for your responses.

I really feel like an idiot (but it probably won't be the last time).

Thanks again.