Special Characters in web page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All:

I have a textbox in my web page, when user input "A & B" in this textbox,
then click save button, then in the database it store as "A & B", which is
good.
Bu the problem is when i select this field data and display to this textbox,
it change to "A & B". Anyone know how to handle this problem?

Cheers

Nick
 
Howdy,

Text is automatically encoded (special characters are replaced with escape
codes - & is a special character and after encoding equals &) see:

HttpServerUtility.HtmlEncode
HttpServerUtility.HtmlDecode

hope this helps

Milosz Skalecki
MCP, MCAD
 
Back
Top