Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To Isolate the UpdatePanels from each other, set the property: <code>UpdateMode</code> to <code>Conditional</code> for every update panel. After that define Triggers for your update Panels.</p> <p>Example:</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:Label ID="Label1" runat="server" /&gt;&lt;br /&gt; &lt;asp:Button ID="Button1" runat="server" Text="Update Panel 1" OnClick="Button1_Click" /&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>// IInd Update Panel</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:Label ID="Label2" runat="server" ForeColor="red" /&gt; &lt;asp:Button ID="Button2" runat="server" Text="Update Panel 2" OnClick="Button2_Click" /&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>Now the click events:</p> <p>// Button Click 1</p> <pre><code> protected void Button1_Click(object sender, EventArgs e) { Label1.Text = DateTime.Now.ToLongTimeString(); } </code></pre> <p>// Button Click 2</p> <pre><code>protected void Button2_Click(object sender, EventArgs e) { Label2.Text = DateTime.Now.ToLongTimeString(); } </code></pre> <p>As you can verify now, <strong><em>when you click on <code>Button1</code>, Only the First UpdatePanel is refreshed. It won't have any effect on 2nd Update Panel</em></strong> [ UpdatePanel2 ]</p> <p><em><strong>Similary, click on <code>Button2</code>, only 2nd UpdatePanel will be refreshed. The First UpdatePanel will not refresh.</em></strong></p> <p>So, In your case, set UpdateMode="Conditional" for the updatePanel containing the dropdownlist. And make sure the Triggers defined [ Controls here ] for your 2nd Update panel is not contained in firstUpdatePanel.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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