views:

219

answers:

2

On a postback I'm setting the value of one of my textboxes to a grave accent. This is causing a bunch of the HTML that follows to be shown in the textbox instead of the grave accent. What am I doing wrong?

A: 

Are you using the HTML entity number or name instead of the actual grave accent character? http://www.w3schools.com/tags/ref_entities.asp

Agathe
` is not on that page, but I've tried a few different encodings but it seems to go straight through as the encoding.
Ryan
A: 

Use ` for your grave accent. That should solve your problem.

blesh
If I do string.Replace("`"," `") it will just output ` to the textbox
Ryan