Hi Chris,
Use the HttpUtility.UrlDecode method to convert the Unicode:
YourTextBox.Text =
HttpUtility.UrlDecode(ds.Tables["MyTable"].Rows[0]["MyField"].ToString());
>In a C# ASP.Net application I’m using SQL Server data stored in an nText field.
>When I display my data in anything that is non editable such as a table or a label, it shows fine. When I display in an input field, I get the Unicode values for any special characters. (Such as accented characters.)
>I can paste into the input boxes and it will display fine and save fine. Its just when I go to redisplay it for an edit that I get the Unicode values instead of the characters.
>
>Any ideas would be appreciated,
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi