Hi there,
I have an ascx control where I have a timer, a few textboxes and a datagrid in an AJAX panel.
Every 10 seconds, the timer calls a module that builds an SQL query depending on the textboxes given, then fetches the data and binds it to the grid.
My problem is that sometimes it loses its scroll position. It does not necessarily scroll to the top, sometimes it even scrolls to the bottom or middle of the page (This means it is not doing a full page refresh... which is good).
My suspicion is that it scrolls to the control that is focused on.
Anyway to stop this?
Thanks!
K
I have an ascx control where I have a timer, a few textboxes and a datagrid in an AJAX panel.
Every 10 seconds, the timer calls a module that builds an SQL query depending on the textboxes given, then fetches the data and binds it to the grid.
My problem is that sometimes it loses its scroll position. It does not necessarily scroll to the top, sometimes it even scrolls to the bottom or middle of the page (This means it is not doing a full page refresh... which is good).
My suspicion is that it scrolls to the control that is focused on.
Anyway to stop this?
Thanks!
K