C
Carl Mercier
Hi,
I have a long form that post back to itself at different places. At the
very end, I have a button called "Next" that post back to itself again
but some panels are hidden and some others are shown to simulate a "Next
Page" effect. Since I have many controls that require post back, I need
SmartNavigation to be turned on.
However, when I press "Next" at the end of the page, the scroll position
goes to the very bottom on the second page (where the same "Next" button
is to go to page 3, for example).
My question is, how do I clear the scroller position programatically?
Example (I simplified the code for easy reading)
Private Sub btnGoNextPage_Click
ClearScrollerPosition()
GoNextPage() 'Go to the top of next page
End Sub
Thanks!
Carl
I have a long form that post back to itself at different places. At the
very end, I have a button called "Next" that post back to itself again
but some panels are hidden and some others are shown to simulate a "Next
Page" effect. Since I have many controls that require post back, I need
SmartNavigation to be turned on.
However, when I press "Next" at the end of the page, the scroll position
goes to the very bottom on the second page (where the same "Next" button
is to go to page 3, for example).
My question is, how do I clear the scroller position programatically?
Example (I simplified the code for easy reading)
Private Sub btnGoNextPage_Click
ClearScrollerPosition()
GoNextPage() 'Go to the top of next page
End Sub
Thanks!
Carl