469,964 Members | 1,518 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

ASP.NET PostBack Encoding Problem

Hello,

I've an encoding problem with asp.net 2.0 pages, it only effects to the content of textBox elements. When user press Submit button and page become postback the strings in textBox become strange characters.

Is anybody experienced and solved a similar problem ?

Best Regards
Aug 17 '07 #1
5 2232
kenobewan
4,871 Expert 4TB
Have you tried checking whether postback occurs? Copy the strange characters and the textbox properties. Thanks.
Aug 19 '07 #2
Yes, I checked postBack occurs... I made AutoPostBack property of textBox false but nothing changed...
Aug 19 '07 #3
Maybe you should store the values that are being jumbled into a Session object.

Session.add("name", value)

Then on page_load check if its a postback and if it is, just change the .text property of whatever textbox is messing up:

theTextBox.text = Session("name").toString()

Hope this helps with the encoding issues.
Al
Aug 20 '07 #4
Maybe you should store the values that are being jumbled into a Session object.

Session.add("name", value)

Then on page_load check if its a postback and if it is, just change the .text property of whatever textbox is messing up:

theTextBox.text = Session("name").toString()

Hope this helps with the encoding issues.
Al
Thanks.. This method solved my problem. But I have two PostBack (2 buttons) in my page. Fisrt one brings the data and the second one create XML. With Session method I can just add jumbled characters to an XML document.

But thanks again...
Aug 20 '07 #5
NP :)
Glad to be of service!
Aug 20 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Tom | last post: by
3 posts views Thread by dave | last post: by
10 posts views Thread by Krista Lemieux | last post: by
6 posts views Thread by | last post: by
2 posts views Thread by Oriane | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.