Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I searched through CP and Google and didn't find anything useful, but maybe someone has some ideas.

The situation: A web page with three data input forms; there are GridViews and blocks of text in between the input forms, making for a rather long page. The user inputs data in the middle or bottom form and clicks "Submit", a post back occurs, the data is added or updated, and the page reloads.

I want to preserve the page location, so that when the page reloads, the user is looking at the middle or bottom form they started from, and not at the very top of the page. I have added the MaintainScrollPositionOnPostback directive to the page, but it is apparently not supported by our current server (Windows 2000.)

Any suggestions?
Posted

1 solution

If you have such a large page I would consider using AJAX to add the data and not even do a postback. At the very least use an UpdatePanel.
 
Share this answer
 
Comments
Gregory Gadow 28-Mar-11 12:37pm    
I looked into that, too. This site does not have AJAX installed currently, and it will be shutting down within three months anyway. The new site is Windows 2008, which supports MaintainsScrollPositionOnPostback and makes my question moot. I was hoping there might be some kind of quick fix, but if I have to say "it will be fixed in the new version of the site," I can.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900