How to prevent Literal and Textbox control repopulating?
Posted on 2006-07-18
I have a literal and a textbox on my form, the contents of the literal are set in the Page_load with no postback check. Viewstate has been disabled for both controls, yet when a postback is performed, the textbox retains it's pre-post value, and so does the literal control. ( I know that viewstate doesn't hold the textbox value, blah blah blah)
I could handle the textbox by setting it's text to "" on postback, but the literal control SHOULD be refreshing itself each postback.
How can I make the page behave as it does when first loaded?
Thanks for your time,