ASP – Response.Write Object

45 pts.
Tags:
ASP
ASP Maintenance
Hi. I am using the ASP tutorial in www.w3schools.com. When i try out the following basic example it is not showing any results:



<html> <body> <% response.write("My first ASP script!") %> </body> </html>
 



[!--response.write("My first ASP script!") --]I have tried other simailar basic examples also with the same outcome. Is there some setting i need to address or something like that? Any ideas appreciated. Regards JK.



Software/Hardware used:
Windows XP, I.E 7

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    How are you creating and testing your page (tools being used) ?
    69,065 pointsBadges:
    report
  • TomLiotta
    Other questions might be "Where is the page being served from and what is serving it?" Tom
    125,585 pointsBadges:
    report
  • JKJK
    I open a notepad file and type or copy the sample html/asp code into it and save it as test.asp - then i right click the file and open it with Internet Explorer. The asp code for the response.write command does not appear, but a test html paragraph does. i.e. (<p>test</p>. The page is located on a virtual server.
    45 pointsBadges:
    report
  • carlosdl
    You cannot test it that way. ASP pages have to be served by an IIS (Internet Information Services), which is a web server that you can install for free (if not already installed) on most windows OSes. I'm almost sure it is mentioned in the tutorial you are following. Just don't try to jump to the coding/testing part if you have not read the basics yet. Good luck.
    69,065 pointsBadges:
    report
  • TomLiotta
    Note that it is the web server (i.e., IIS) that executes the script, not Internet Explorer. That's why it's called ASP -- Active Server Pages. The server interprets the script and modifies the page before sending it to a browser. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following