title: Every time button cause full post back, even it is in update panel
body: <p>In my code every DropDownList is inside an Update Panel and they're not postbacking. For each button click full postback occurs, but my buttons are in Update Panel. I tried using the asynpostback trigger, in that case server side message is not displayed. I want that message also.</p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;table align="center" style="border: thin solid #FF0000" width="80%"&gt;
          &lt;tr&gt;
              &lt;th colspan="2" align="center" bgcolor="Black" style="color: #FFFFFF"&gt;
                  Schedule New Batch
              &lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="2" align="center"&gt;
                  &lt;div&gt;
                      &lt;asp:Label ID="lblError" runat="server" Style="font-weight: 700; color: #FF0000;"
                          Text="Label" Visible="False"&gt;&lt;/asp:Label&gt;
                      &lt;asp:Label ID="lblSucess" runat="server" Style="font-weight: 700; color: #006600;
                          background-color: #FFFFFF;" Text="Label" Visible="False"&gt;&lt;/asp:Label&gt;
                  &lt;/div&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="2"&gt;
                  &amp;nbsp;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style44" align="right"&gt;
                  Technology&lt;span class="style23"&gt;*&lt;/span&gt; :
              &lt;/td&gt;
              &lt;td class="style45"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:DropDownList ID="ddlTechnology" runat="server" Width="155px" Class="valid" OnSelectedIndexChanged="ddlTechnology_SelectedIndexChanged"
                              AutoPostBack="True" Height="23px"&gt;
                          &lt;/asp:DropDownList&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style49" align="right"&gt;
                  Courses&lt;span class="style23"&gt;*&lt;/span&gt; :
              &lt;/td&gt;
              &lt;td class="style50"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:DropDownList ID="ddlCourse" runat="server" Width="155px" Class="valid" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged"
                              AutoPostBack="True" Height="23px"&gt;
                          &lt;/asp:DropDownList&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style9" align="right"&gt;
                  Faculty&lt;span class="style23"&gt;*&lt;/span&gt; :
              &lt;/td&gt;
              &lt;td class="style47"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel3" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:DropDownList ID="ddlFaculty" runat="server" Width="155px" Class="valid" OnSelectedIndexChanged="ddlFaculty_SelectedIndexChanged"
                              AutoPostBack="True" Height="23px"&gt;
                          &lt;/asp:DropDownList&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style44" align="right"&gt;
                  Timing&lt;span class="style24"&gt;*&lt;/span&gt; :
              &lt;/td&gt;
              &lt;td class="style45"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel4" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:DropDownList ID="ddlTiming" runat="server" Width="155px" Height="23px" AutoPostBack="True"
                              Class="valid" OnSelectedIndexChanged="ddlTiming_SelectedIndexChanged"&gt;
                          &lt;/asp:DropDownList&gt;
                          &lt;asp:Button ID="btnAdd" runat="server" Text="Add" /&gt;
                          &lt;cc1:modalpopupextender id="btnAdd_ModalPopupExtender" runat="server" cancelcontrolid="btnCancleInsertTime"
                              dynamicservicepath="" enabled="True" popupcontrolid="Panel1" targetcontrolid="btnAdd"&gt;
                  &lt;/cc1:modalpopupextender&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style44" align="right"&gt;
                  Start Date&lt;span class="style23"&gt;*&lt;/span&gt; :
              &lt;/td&gt;
              &lt;td class="style45"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel6" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:TextBox ID="txtInsertdate" runat="server" Width="150px" Height="16px" Class="valid"&gt;&lt;/asp:TextBox&gt;
                          &lt;cc1:calendarextender id="CalendarExtender1" runat="server" targetcontrolid="txtInsertdate"
                              format="yyyy-MM-dd"&gt;
                  &lt;/cc1:calendarextender&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="style51"&gt;
                  &amp;nbsp;
              &lt;/td&gt;
              &lt;td class="style45"&gt;
                  &amp;nbsp;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;div style="text-align: right"&gt;
                      &lt;asp:Button ID="btnSchedule" runat="server" Text="Schedule" Style="font-weight: 700;
                          margin-left: 0px;" Width="81px" Height="24px" OnClick="btnSchedule_Click" /&gt;
                  &lt;/div&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel5" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;asp:Button ID="btnreset" runat="server" OnClick="btnreset_Click" Style="font-weight: 700"
                              Text="Reset" Width="67px" CausesValidation="False" UseSubmitBehavior="false" /&gt;
                      &lt;/ContentTemplate&gt;
                      &lt;Triggers&gt;
                          &lt;asp:PostBackTrigger ControlID="btnreset" /&gt;
                      &lt;/Triggers&gt;
                  &lt;/asp:UpdatePanel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="3"&gt;
                  &lt;asp:Panel ID="Panel1" runat="server" aline="center"&gt;
                      &lt;table style="border: thin solid #FF0000; background: #7F8778"&gt;
                          &lt;tr&gt;
                              &lt;th class="style53"&gt;
                                  Please Add a Time
                              &lt;/th&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td align="center" style="color: #FF0000" class="style53"&gt;
                                  &lt;asp:TextBox ID="txtInsertTime" runat="server" Width="124px"&gt;&lt;/asp:TextBox&gt;
                                  &amp;nbsp; EX: 09:15AM
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;asp:UpdatePanel ID="UpdatePanel7" runat="server"&gt;
                                  &lt;ContentTemplate&gt;
                                      &lt;td align="center" class="style53"&gt;
                                          &lt;asp:Button ID="btnInsertTime" runat="server" Text="Add Time" Width="73px" OnClientClick="return InsertTime()"
                                              OnClick="btnInsertTime_Click" class="cancel" /&gt;
                                          &amp;nbsp; &amp;nbsp;
                                          &lt;asp:Button ID="btnCancleInsertTime" Text="Cancel" Width="55px" runat="server" class="cancel" /&gt;
                                      &lt;/td&gt;
                                  &lt;/ContentTemplate&gt;
                              &lt;/asp:UpdatePanel&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                  &lt;/asp:Panel&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;br /&gt;
      &lt;/form&gt;
  &lt;/asp:Content&gt;
  </code></pre>