Click here to Skip to main content
14,176,607 members
Rate this:
 
Please Sign up or sign in to 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190525.1 | Last Updated 28 Mar 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100