开发者

viewstate and textbox in asp.net

开发者 https://www.devze.com 2023-01-01 07:44 出处:网络
How is a TextBox able to persist changes (e.g. text) even after the EnableViewState prope开发者_开发百科rty is set to false in ASP.NET?Because the ASP.NET Textbox control generates an HTML form input

How is a TextBox able to persist changes (e.g. text) even after the EnableViewState prope开发者_开发百科rty is set to false in ASP.NET?


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 source view from your browser on an ASP.NET page. When the form is posted, ASP.NET is able to read the text value from the HTTP POST contents. You can read more about it here and here.

0

精彩评论

暂无评论...
验证码 换一张
取 消