Quote:Why some controls retain values even after disabling the ViewState while others do not? The answer is Controls which implements IPostBackEventHandler like Textbox, Checkbox, etc. will retain the state even after disabling the viewstate. The reason is during the Load Postback Data stage, these controls will get state information from Posted back form. But controls like label which do not implement IPostBackEventHandler will not get any state information from posted back data and hence depend entirely on viewstate to maintain the state.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)