.Focus() do not focus label control in deployment site, only can focus it in development site
<p>.Focus() do not focus label control in deployment site, only can focus it in development site</p>

<p>this page is in aspx's iframe</p>

<p>i have already put this focus at the beginning and end of onclick event
however got this problem.</p>

<p>what should i do?</p>

<p>the goal is to go back at the top of the page when having validation error</p>

<p>after this focus in page_load also failed</p>

<p>then i try defaultfocus in page_load, also failed</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
Page.Form.DefaultFocus = candRegFormMessage.ClientID;
</code></pre>

<p>chrome, firefox and internet explorer can focus it after press submit in development site.
after upload to production site, got this problem</p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;

    &lt;asp:Panel ID="candRegFormPanel" runat="server" Visible="false"&gt;
        &lt;asp:Label ID="candRegFormMessage" runat="server" ForeColor="Red"&gt;&lt;/asp:Label&gt;
    &lt;/asp:Panel&gt;

public void candRegSubmission(object sender, EventArgs e)
    {
        string errorMessage = "";
        string candEntityID = "";
        candRegFormMessage.Focus();

        if (IsValid)
        {

    ....very long
}
 candRegFormMessage.Focus();
}
</code></pre>

<p>finally i try MaintainScrollPositionOnPostback="false" in masterfile
also failed</p>
