Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdownlist in the bottom sends me to the top

Status
Not open for further replies.

gcastillo

Programmer
Jun 9, 2000
127
MX
Hello. I have two or three dropdownlists at the bottom of my form, with autopostback enabled. When I select something, the page reloads on the top of the page. How can I return the page to the bottom after I select something in my dropdl?
 
The easiest and probably best way is to post back via AJAX. See here to get started with the Microsoft ASP.NET AJAX framework.


There are other techniques you can use: Smart Navigation for IE was supposed to solve the problem (but it's notoriously buggy) and you can track and reset the scroll position with Javascript, but ASP.NET AJAX is both better performing and simpler.
 
Thanx, BB, but I'm not using ver 2.0, I'm stucked in the previous version. I'm going to look after that "smart navigation", thank you for pointing me in that direction. Any more ideas, people? I can't believe that there's not something like "backToPosition" or something in the component!. Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top