How to clear the SmartNavigation position programatically?

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
 
G

Guest

Yes, you SmartNavigation programmatically.

Just use Me.Page.SmartNavigation = false

and that should do the trick for you.
 
C

Carl Mercier

David,

This is not what I am looking to do. (or maybe it is)

I definately need SmartNavigation, but want to clear the scrollbar
position programmatically. Will turning it off then back on do the
trick you think?

Thanks!

Carl
 
C

Carl Mercier

For the record, this trick doesn't work.

Carl



Carl said:
David,

This is not what I am looking to do. (or maybe it is)

I definately need SmartNavigation, but want to clear the scrollbar
position programmatically. Will turning it off then back on do the
trick you think?

Thanks!

Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,206
Latest member
SybilSchil

Latest Threads

Top