[导入]DotNet 2.0下为了安全的一个小改变

微软官方原文:
After careful analysis, the explanation for the observed behaviour is that:
With a design change in ASP .NET based on user security concern, the input for a readonly textbox is saved in viewstate, which doesnt happen if viewstate is disabled. To workaround this, a page developer can add the readonly attribute to the TextBox.Attributes collection, which can then be used to access the 'value' of the textbox.

We hope this clarifies. Thank you. 
Web Server & Tools
文章来源:http://www.sunxiu.com/blog/blogview.asp?logID=104
原文地址:https://www.cnblogs.com/wanghui/p/355524.html