Question reg. ASP.NET ViewState -
i've been going through excellent article http://msdn.microsoft.com/en-us/library/ms972976.aspx says viewstate not responsible form fields retain values between postbacks. form fields values never stored in viewstate?
edited: mean form fields asp.net controls textbox, dropdownlist etc.
edited: if user enters value in asp.net textbox , submit form, new page still has textbox value thinking because of viewstate article says it's not so!
as say, form values not stored in viewstate. reason (for example) text of textbox control retained between 2 postbacks because implements ipostbackdatahandler-contract , automatically maps keys in request.form-collection appropriate properties of control. these 2 mechanisms confused.
see http://www.mikesdotnetting.com/article/65/viewstate-form-fields-labels-and-javascript explanation.
Comments
Post a Comment