Asp.Net: Postback / Bookmarks

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
9 times outta 10 I try to keep my web forms on one page to avoid this problem, but this time I'm unable to do it.

I have a form with a lot of drop down lists that will be changed, covering about 50-60 rows of data.

I'm trying to code in something that adds a bookmark (<A name='uid'/>) and jump to this bookmark upon a postback so that the users response isn't making the page go to the top of the screen and then them having to scroll all the way down.

Does anyone know of either:

a) A better way of 'jumping' to the last control that was changed,
b) Jumping to bookmarks upon a postback.
 
Never had much luck with SmartNavigation, plus unfortunately, not all users are IE ones.
 
Well you could always set the anchor in the startup javascript:
Code:
location.hash = '#yourplace'

Do you really need to be posting back at all though?
 
Back
Top Bottom