Maintain Control State in ASP.NET 2.0
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Maintain Control State in ASP.NET 2.0
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Maintain Control State in ASP.NET 2.0
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
hassan mohamedPosted Apr 27, 2009, 11:01 AM EDT
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, 4:31 AM EDT
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, 7:19 AM EST
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