Home > DeveloperSection > Forums > How to make Response.Write Display special character like “<”,“>”
Jayden Bell
Jayden Bell

Total Post:105

Points:739
Posted on    November-28-2014 10:29 PM

 ASP.Net C# 
Ratings:


 1 Reply(s)
 1046  View(s)
Rate this:

I want to use Response.Write to display some text on the screen using ASP.NET I created a variable

 

String s = "There is some <hidden text> which is not visible";

Response.Write(s);

What I found is when the browser only display "There is some which is not visible" any text written in between symbols '<'......'>' is neglected by the browser.

 

How can I display entire text?

Please advice.



Kamlakar Singh
Kamlakar Singh

Total Post:194

Points:1396
Posted on    November-29-2014 6:44 AM

Server.HtmlEncode("There is some <hidden text> which is not visible");


Don't want to miss updates? Please click the below button!

Follow MindStick