Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to work with two update panels on same .aspx page
    text
    copied!<p>I have two update panels on a page. And I want to update both of them conditions at different-2 conditions. But I don't know why this is not happening. I have specified triggers for both but not helpful, below is my code. </p> <p>Please let me know Where I am wrong.</p> <p>Actually there are three dropdown lists in first update panel when their selectedindexchange is fired then the second update panel's content also updates.</p> <pre><code>&lt;asp:UpdatePanel ID="upSearch" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;div style="float: left; width: auto;"&gt; &lt;asp:DropDownList ID="ddlLocation" runat="server" Width="206px" DataTextField="LocationName" DataValueField="Locationid" AutoPostBack="true" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"&gt; &lt;/asp:DropDownList&gt; &amp;nbsp; &lt;asp:DropDownList ID="ddlArea" runat="server" Width="200px" DataTextField="AreaName" DataValueField="Areaid" AutoPostBack="true" OnSelectedIndexChanged="ddlArea_SelectedIndexChanged"&gt; &lt;/asp:DropDownList&gt; &amp;nbsp; &lt;asp:DropDownList ID="ddlRoom" runat="server" Width="200px" DataTextField="RoomName" DataValueField="Roomid"&gt; &lt;/asp:DropDownList&gt; &amp;nbsp; &lt;/div&gt; &lt;div style="float: left; width: 80px;"&gt; &lt;asp:Button ID="btnSearch" runat="server" Text="Search" ValidationGroup="vgSearch" CssClass="bluebtn" UseSubmitBehavior="false" OnClick="btnSearch_Click" /&gt; &lt;/div&gt; &lt;div style="float: left; width: 99%; padding: 5px 0px;"&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>And the second one is as follow:-</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:Calendar ID="calSchedule" runat="server" NextPrevFormat="FullMonth" OnDayRender="calSchedule_DayRender" OnVisibleMonthChanged="calSchedule_VisibleMonthChanged"&gt; &lt;DayHeaderStyle CssClass="dayheaderStyle" /&gt; &lt;NextPrevStyle /&gt; &lt;OtherMonthDayStyle BackColor="#ffffff" /&gt; &lt;SelectedDayStyle /&gt; &lt;TitleStyle CssClass="titleStyle" /&gt; &lt;TodayDayStyle BackColor="#ffffa0" ForeColor="#6699cc" /&gt; &lt;WeekendDayStyle /&gt; &lt;DayStyle CssClass="dayStyle" /&gt; &lt;/asp:Calendar&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload