Hi,
I have a user control(error control) in a master page. by default the user control is hidden(visible false)
on click of a submit button i am showing the error control.Now on post back I want to bring focus to this control.I am writing the java script in register Startup script as following:
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Scroll", "window.scrollTo(0, 0)", true);
on postback page goes up shows this control and then comes back to its previous scroll position.