SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Server.Htmlencode to display tags in ASP

We can't post any HTML tags to the screen ( or to browser ) as browser will interpret then as tags and try to format the string accordingly without displaying the tag itself. To display the tag to web browser we have to use server object htmlencode.

Here is an example of htmlencode

Response.Write Server.htmlencode( "To highlight a string we have to add <b> Bold Tag </b>")

The output of this is here.

To highlight a string we have to add <b> Bold Tag </b>

Try to use only Response.Write without htmlencode and see the difference.


Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked

Join Our Email List
Email:  
For Email Newsletters you can trust
Server Object