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?
Share
all the server controls events are stored in viewstate. if you want to off the viewstate then not any server control work. if you want to off the viewstate then implemented the logic using javascript or jquery.