In ASP.NET, how does disabling the ViewState of a databound control affect the event handling of its children controls?
<p>I have a ListView control and in the LayoutTemplate I have Previous and Next paging buttons. On clicking the buttons, a PageButton_Click event handler in the code behind file is called to do the paging. It works fine, but if I switch off the ViewState of the ListView, clicking the buttons would not be able to call the event handler in the code behind. What is happening here?</p>
