Click to See Complete Forum and Search --> : How to keep a page anchor when doing a submit?


squale
February 6th, 2006, 05:50 PM
I have a web form that is rather lenghty, you have to scroll down quite a bit to fill in all the information into the form. Then the submit button is at the bottom of the page. When you hit submit, the form submits to itself, the data gets saved to the DB, then the page refreshes and puts you back to the top of the page. Is there a way to have the page automatically put you back to the same spot you were when you hit the submit button?

Thanks

using ASP.net 1.1 with VB.net code

ITGURU
February 7th, 2006, 01:11 AM
Dear squale,

You can achieve this functionality using smartNavigation attribute of the @@Page Directive.

For detail you can refer to MSDN.

Alsvha
February 7th, 2006, 02:46 AM
Rather then using "SmartNavigation" - I'd much more advice you to take a look at:
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx

SmartNavigaiton is not only buggy but it dosen't show much in crossbrowser functionality unless they have changed it for asp.net 2 which I've yet to look into.