开发者

Textbox control dont lose value on postback if viewstate is disabled

开发者 https://www.devze.com 2023-01-21 06:05 出处:网络
When we disabled the viewstate in gridview its 开发者_高级运维lose value but this case not true with Textbox control why?Because TextBox doesn\'t need ViewState to persist its value. It just fetches i

When we disabled the viewstate in gridview its 开发者_高级运维lose value but this case not true with Textbox control why?


Because TextBox doesn't need ViewState to persist its value. It just fetches it from the POST request during initialization.

0

精彩评论

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