I have a page that has lot of update panel inside it.On clicking on some of the controls it's taking a lot of time because of lot fuctions on th e server side.
Steps that cause the probleams
1 Clicked on button
2 Scrool to bottom portion
3 On time of updating the above portion cause the page to scroll up.
I need the page to mainatain the scroll position irrespective of the updating of portion in the page,
You are not merely able to maintain the scrollTop/scrollLeft of the panel,You also can popup the panel automaticly after the Ayncpostback return if you are use Popup panel.
Best Regards
Sincerely,
Jin-Yu Yin
Microsoft Online Community Support
eapeneapen
0 Points
1 Post
maintain Scroll position in Ajax page
Aug 23, 2007 01:20 PM|LINK
Hi
I have a page that has lot of update panel inside it.On clicking on some of the controls it's taking a lot of time because of lot fuctions on th e server side.
Steps that cause the probleams
1 Clicked on button
2 Scrool to bottom portion
3 On time of updating the above portion cause the page to scroll up.
I need the page to mainatain the scroll position irrespective of the updating of portion in the page,
Could you please look in to the issue.
Thanks
eapen ,
Kiril2006
Member
305 Points
130 Posts
Re: maintain Scroll position in Ajax page
Aug 23, 2007 04:25 PM|LINK
I am not sure if i understand correctly the problem but here are few hints that can help you solve your problem.
When you clicked on the button - you call JS function OnClientClick(or onclick property) that will scroll to the bottom.
On you server side, you can call ScriptManager.RegisterStartupScript that will call scroll back to any postion when its done updating.
Hope that helps,
Jin-Yu Yin -...
All-Star
21280 Points
1824 Posts
Re: maintain Scroll position in Ajax page
Aug 29, 2007 08:16 AM|LINK
Hi eapeneapen,
To maintain the scrollTop/scrollLeft of the panel after the Ayncpostback return,Just do it as follow:
You can check this post for more information:ModalPopupExtender panel scroll position
You are not merely able to maintain the scrollTop/scrollLeft of the panel,You also can popup the panel automaticly after the Ayncpostback return if you are use Popup panel.
Best Regards
Jin-Yu Yin
Microsoft Online Community Support
bfancett
Member
247 Points
103 Posts
Re: maintain Scroll position in Ajax page
Nov 19, 2008 12:20 PM|LINK
Could you provide an example for ASP.NET 3.5 with C# Code Behind in seperate file?