Response Write Object in ASP

We can send outputs to screen or web browser by using Response Write object in ASP. To print a simple output here is the code

Response.Write "Hello World"

The above line will print the string Hello World . You have seen double quotes are used to indicate starting and ending of a string. Now if we want to print double quotes within our string then we have to use two double quotes in place of one. Like this

Response.Write "Raju told ""He is learning ASP from plus2net"" So you can also learn from here "

The output of this command will be

Raju told "He is learning ASP from plus2net" So you can also learn from here

You can read more on double quotes and string escape here.

Printing html tags

We can't print html tags to just like that , here is an example of printing bold tag .

Response.Write "Use Bold Tags <B> to highlight strings "

The output is here

Use Bold Tags <B> to highlight strings

You can read more on how to print html tags here.

Be the first to post comment on this article :

plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer