Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 11, 2012 03:16 AM by chetan.sarode
Nov 19, 2006 03:53 PM|LINK
Can someone tell me how to cause the an Ajax postback to return to the top of the page.
In a long display I have button at bottom of page that performs call to Ajax. All works fine, but I want the user to be returned to the top of page. As it is, the user is left at the same screen location after the Ajax call.
Nov 19, 2006 05:31 PM|LINK
Nov 20, 2006 04:32 AM|LINK
try this. I hope it will work for u as it worked in my case
will take u to top of ur page.
for any desired location change scrollto postions.
Nov 20, 2006 01:53 PM|LINK
Nov 20, 2006 02:06 PM|LINK
Nov 21, 2006 01:24 PM|LINK
MyObj.GetType, MyObj.ClientID + "Key", "window.scrollTo(0,0)", True)
However, for unknown reason, the page is going up and then going back to the control began the postback.....
Nov 21, 2006 05:17 PM|LINK
Nov 22, 2006 11:06 AM|LINK
Hi, in another post Omourad gave me this piece of code which works wonderfully and does exactly what you're looking for....
try this, it is working with me:
Nov 22, 2006 02:37 PM|LINK
Apr 09, 2009 04:39 PM|LINK
This worked perfect for me. Thank you.