Response Write Object in ASPWe can send outputs to screen or web browser by using Response Write object in ASP. To print a simple output here is the codeResponse.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 thisResponse.Write "Raju told ""He is learning ASP from plus2net"" So you can also learn from here "The output of this command will beRaju told "He is learning ASP from plus2net" So you can also learn from hereYou can read more on double quotes and string escape here.Printing html tagsWe 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 hereUse Bold Tags <B> to highlight stringsYou can read more on how to print html tags here.
This article is written by plus2net.com team.
Be the first to post comment on this article : |