Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
Changing page on WebGrid does not fire PreRender
posted

When I have a WebGrid up with multiple pages, and I click on the page number to change the page, I notice (in the debugger) that the events fire: Page_Init, Page_Load, Page_Unload. But Page_PreRender does not fire. It also seems like the rest of the page (besides the grid) does not really get refreshed. For example, I see a TextBox's value change during the Load event, but when the page comes up the TextBox is back to its old value.

 Does anyone know what is going on here, and what is the best way to get the whole page to get refreshed when the user changes the page on the grid?