The text of this article is not in this database — only its details are. Read it on the old site: Maintain Control State in ASP.NET 2.0
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Maintain Control State in ASP.NET 2.0
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
hassan mohamedPosted Apr 27, 2009, 3:01 PM
i commented out savecontrolstate () in some properties eg city but still view state is maintained even if i set the controls enableviewstate to false. i change city and when i post back state is maintained no matter how many times i do submit page
vivek singhPosted Sep 6, 2007, 8:31 AM
Hi scott, i have got a problem here. In my form i have couple of text fields and a submit button. After submitting my form when i click on Refresh the same data gets inserted again.This happens as many times i click on refresh. What i would ideally like is to insert the data only once even after pressing on refresh button and the data should only be inserted when i click on submit button. Plz lemme know if there's any solution to this problem. I work on Asp DotNet 2.0.
jo poPosted Dec 2, 2006, 12:19 PM
HI! If I comment the : Protected Overrides Function SaveControlState() As Object Return Me.mCurrentProps End Function it still keeps the values. Viewstate is also turned off. How does it keep the values? Kind regards Legends