Viewstate and text box in asp.net

How can a TextBox save changes (for example, text) even after the property is EnableViewStateset to falsein ASP.NET?

+3
source share
1 answer

Because the ASP.NET Textbox control generates an HTML form input element <input type="text" name="x" />. You can verify this by looking at the original view from your browser on the ASP.NET page. When the form is published, ASP.NET can read the text value from the contents of the HTTP POST. You can read about it here and here .

+3
source

Source: https://habr.com/ru/post/1746859/


All Articles