F
Frank
I'm really stumped here. I have a couple pages where I'm using a
datagrid and a custom paging solution. I store the current page, sort
column, etc in the ViewState of the page. When a column is clicked or
the pager control (custom) is clicked I load the view state to get any
current values, then build the page accordingly...
Problem:
One of my pages works fine - paging is great and the ViewState loads as
per normal. The other page with virtually the same code does not. The
View State is null when the 'pager_navigate' event fires.
I've stepped through the code (each line in fact) and basically the
order of page execution is also identical: OnInit, Pager_Navigate (on
postback)
The difference is that in the page that works the ViewState loads its
values and thus the navigation works. On the 'broken' page, the
ViewState never loads (stepped into the Pre-Render event and the
ViewState was null.
I've checked to make sure the ViewState values are being stored before
the page renders and the ViewState has a value on both pages before
rendering.
Thoughts?
datagrid and a custom paging solution. I store the current page, sort
column, etc in the ViewState of the page. When a column is clicked or
the pager control (custom) is clicked I load the view state to get any
current values, then build the page accordingly...
Problem:
One of my pages works fine - paging is great and the ViewState loads as
per normal. The other page with virtually the same code does not. The
View State is null when the 'pager_navigate' event fires.
I've stepped through the code (each line in fact) and basically the
order of page execution is also identical: OnInit, Pager_Navigate (on
postback)
The difference is that in the page that works the ViewState loads its
values and thus the navigation works. On the 'broken' page, the
ViewState never loads (stepped into the Pre-Render event and the
ViewState was null.
I've checked to make sure the ViewState values are being stored before
the page renders and the ViewState has a value on both pages before
rendering.
Thoughts?