How to clear the SmartNavigation position programatically?
-
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
-
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
-
You could use an anchor tag to go to a certain spot on the page ...
<a name="GoHere">Go Here</a>
The trick would be getting that into the form action ... MyForm.aspx#GoHereWally Atkins
Newport News, VA, USA