title: How to show alert from code behind after page loads completely?
body: <p>I am showing alert at button click and have tab control at page . Alert appears but tab disappears at alert. I want to show alert so that tab will not disappear at alert. Is there any technique how to handle this thing ?</p>
  
  <pre><code>&lt;asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"&gt;
  &lt;asp:TabPanel ID="pael1" HeaderText="IP text" runat="server"&gt;
  &lt;ContentTemplate&gt;
  
  &lt;/ContentTemplate&gt;
  &lt;/asp:TabPanel&gt;
  &lt;asp:TabPanel ID="panel2" HeaderText="text" runat="server"&gt;  
      &lt;ContentTemplate&gt;
         // Button Click Event
      &lt;/ContentTemplate&gt;
       &lt;/asp:TabPanel&gt;
  &lt;/asp:TabContainer&gt;
  
  protected _Click(object sender, EventArgs e)
          {
             ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "Message", "alert('Connection Successful!')", true);
          }
  </code></pre>