title: Multiple panels on the same page using ASP.NET C#
body: <p>On the local server it's working correctly, but when I am doing registration on the live server then sometimes registration redirects successfully to the page and sometimes it doesn't, and also I don't get any error message. The registration form is very big, so I am not putting all design, code, but I have taken code from every block. I think the panels are the problem, but another thing I had to observe if the page is not registered, then I reload again same page, then I am able to register and redirecting to successfully.</p>
  
  <p>Page Load Code:</p>
  
  <pre><code>BusinessLogic bl = new BusinessLogic();
  BusinessObject bo = new BusinessObject();
  protected void Page_Load(object sender, EventArgs e)
  {
      HtmlGenericControl body = (HtmlGenericControl)Master.FindControl("MasterpageID");
      body.Attributes.Add("class", "fifth");
  
      //to restore password field when page refreshes
      txt_Password.Attributes.Add("value", txt_Password.Text);
  }
  </code></pre>
  
  <p>Design Code:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2"
                              DisplayAfter="1"&gt;
              &lt;ProgressTemplate&gt;
                  &lt;div id="IMGDIV" runat="server" align="center" style="left: 55%; visibility: visible;
                                      vertical-align: middle; position: absolute; top: 290%; background-color: #fafbf6"
                                      valign="middle"&gt;
                      &lt;asp:Image ID="Image001" runat="server" ImageUrl="images/loading_bar_animated.gif" /&gt;
                  &lt;/div&gt;
              &lt;/ProgressTemplate&gt;
          &lt;/asp:UpdateProgress&gt;
  
  Nationality:&lt;asp:DropDownList ID="ddl_Nationality" runat="server" CssClass="dropdown" AppendDataBoundItems="true"
              AutoPostBack="true" OnSelectedIndexChanged="ddl_Nationality_SelectedIndexChanged"&gt;
                  &lt;asp:ListItem Text="Select" Value="0"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text="Indian" Value="Indian"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text="Expatriate" Value="Expatriate"&gt;&lt;/asp:ListItem&gt;
            &lt;/asp:DropDownList&gt;
  
  
      Title: &lt;asp:DropDownList ID="ddl_Title" runat="server" CssClass="dropdown" AppendDataBoundItems="true"&gt;
      &lt;asp:ListItem Text="Select" Value="0"&gt;&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Text="Mr." Value="Mr."&gt;&lt;/asp:ListItem&gt;
  
          &lt;/asp:DropDownList&gt;
  
      Name:  &lt;asp:TextBox ID="txt_Name" runat="server" CssClass="textfield_new1" MaxLength="20"&gt;&lt;/asp:TextBox&gt;
  
      &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  
  
       &lt;asp:UpdatePanel ID="UpdatePanel3" runat="server"&gt;
        &lt;ContentTemplate&gt;
  
      &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt;
      Country:    &lt;asp:DropDownList ID="ddl_Country" runat="server" CssClass="dropdown"&gt;
              &lt;asp:ListItem Text="Select" Value="0"&gt;&lt;/asp:ListItem&gt;
                    &lt;/asp:DropDownList&gt;
  
      &lt;/td&gt;
  
      &lt;/tr&gt;
  
      &lt;/table&gt;
  
      &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  
  
      &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel5" runat="server" &gt;
                  &lt;ContentTemplate&gt;
                     Total Experience:        &lt;asp:DropDownList ID="ddl_years" runat="server" AutoPostBack="true" CssClass="Exp"
                     OnSelectedIndexChanged="ddl_years_SelectedIndexChanged"&gt;
                         &lt;asp:ListItem Value="0"&gt;Year&lt;/asp:ListItem&gt;
                 &lt;asp:ListItem Value="1"&gt;0&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;1&lt;/asp:ListItem&gt;
                          &lt;asp:ListItem Value="3"&gt;2&lt;/asp:ListItem&gt;
                          &lt;asp:ListItem Value="4"&gt;3&lt;/asp:ListItem&gt;
  
               &lt;/asp:DropDownList&gt;
                    &lt;asp:DropDownList ID="ddl_months" runat="server" CssClass="Exp"
                 Enabled="false"&gt;
                     &lt;asp:ListItem Selected="True" Value="0"&gt;Month&lt;/asp:ListItem&gt;
                &lt;asp:ListItem Value="1"&gt;0&lt;/asp:ListItem&gt;
  
                &lt;/asp:DropDownList&gt;
                 &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
               &lt;/td&gt; &lt;/tr&gt;
  
      &lt;/table&gt;
  
  
          &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt;
              &lt;asp:UpdatePanel ID="UpdatePanel4" runat="server"&gt;
                  &lt;ContentTemplate&gt;
          &lt;cc1:CaptchaControl ID="CaptchaControl1" runat="server" CaptchaBackgroundNoise="None"
              CaptchaHeight="40" CaptchaLength="5" CaptchaLineNoise="None" CaptchaMaxTimeout="240" 
          CaptchaMinTimeout="5" FontColor="111, 109, 85" Width="325px" CaptchaWidth="300"
          CssClass="textarea_captha" /&gt;
  
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
  
      &lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;
      Enter Text as you See:&lt;asp:TextBox ID="txtCaptcha" runat="server" CssClass="textfield_new1"&gt;&lt;/asp:TextBox&gt;
  
          &lt;/td&gt;&lt;/tr&gt;
  
      &lt;/table&gt;
  
      &lt;table&gt;
      &lt;tr&gt;&lt;td&gt;
  
      &lt;asp:LinkButton ID="imgbtn_Submit" runat="server" ValidationGroup="reg" CssClass="submitbtn"
  
      &lt;/td&gt;&lt;/tr&gt;
      &lt;/table&gt;
  
          &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
                  &lt;asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/spacer.gif" /&gt;
                  &lt;cc1:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID="ImageButton1" PopupControlID="Pnl_popup1"
                  BackgroundCssClass="modalBackground" Drag="true" PopupDragHandleControlID="Pnl_popup1"
                                                      runat="server"&gt;
                      &lt;/cc1:ModalPopupExtender&gt;
                      &lt;asp:Panel ID="Pnl_popup1" runat="server"&gt;
                                                  //pop design code is here
  
                                                      &lt;/asp:Panel&gt;
                  &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>