focus on the user control in C#
<p>I have a user control(error control) in a master page. by default the user control is hidden(visible false)</p>

<p>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:</p>

<pre><code>ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Scroll", "window.scrollTo(0, 0)", true);
</code></pre>

<p>on postback page goes up shows this control and then comes back to its previous scroll position.</p>
