Click here to Skip to main content
15,885,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all
i have a textbox in a asp.net form.
i set EnableViewState property to false but after postback my text box still hold my entered text?why my text box hold value after postback ?
Posted
Comments
Richard C Bishop 12-Nov-12 12:08pm    
Look at this: http://forums.asp.net/t/1800041.aspx/1

1 solution

From richcb's link

"Textboxes do not use ViewState to maintain/hold their values between postbacks. Values are maintained in HTTP Post headers.

Thats the reason why the textbox holds the text after the postback. "
 
Share this answer
 
Comments
mhd.sbt 14-Nov-12 11:49am    
you siad 'Textboxes do not use ViewState to maintain/hold their values between postbacks' ok,
so the property EnableViewState from textbox for what?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900