control-state

ASP.NET: Why control state cannot be disabled

最后都变了- 提交于 2019-12-02 03:38:05
问题 I know ASP.NET doesn't allow to disable control state. Does anybody know why ? I've googled a lot but only saw it is not possible, but was not able to find "WHY?" Any thoughts on this would be welcome! P.S. In my particular case I need to put a lot of items into a dropdown list that will NOT be used for server side events. Instead of just disabling control state I need to write my own custom DropDownList... :( 回答1: Control state was separated from view state so that view state could be

ASP.NET: Why control state cannot be disabled

强颜欢笑 提交于 2019-12-02 01:24:44
I know ASP.NET doesn't allow to disable control state. Does anybody know why ? I've googled a lot but only saw it is not possible, but was not able to find "WHY?" Any thoughts on this would be welcome! P.S. In my particular case I need to put a lot of items into a dropdown list that will NOT be used for server side events. Instead of just disabling control state I need to write my own custom DropDownList... :( Control state was separated from view state so that view state could be disabled without breaking critical functionality. In theory, control state should contain everything necessary for