Note that there are some explanatory texts on larger screens.

plurals
  1. POnested update panel
    text
    copied!<p>I used 2 update panels, nested with each other 1st update panel contains GridView1 2nd update panel contains GridView2. Gridview2 contains GridView3. But GridView3 just displays data. It has no rowcommand or any events.</p> <p>My problem is when a button in GridView2 is clicked. both GridView1 and GridView2's rowcommand event are fired. But, i do not want the GridView1's Rowcommand event to fire.</p> <p>How do i achieve it. Please do help me asap.</p> <p>I set updatemode to conditional for both up1 &amp; up2 -> did'nt work. I set updatemode to conditional, and childrenAsTriggers for both up1 &amp; up2 -> did'nt work.</p> <p>I set updatemode to conditional for both up1 &amp; up2 and defined the trigger for up1 alone -> did'nt work I set updatemode to conditional for both up1 &amp; up2 and defined the trigger for up2 alone -> did'nt work I set updatemode to conditional for both up1 &amp; up2 and defined the triggers for both -> did'nt work.</p> <hr> <p>These are the triggers i tried</p> <p>1) Inner update panel's trigger:</p> <pre><code>&lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="GridView2" EventName="RowCommand" /&gt; &lt;/Triggers&gt; </code></pre> <p>2) Outer update panel's trigger:</p> <pre><code>&lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" /&gt; &lt;/Triggers&gt; </code></pre> <hr> <pre><code>&lt;asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:GridView ID="GridView1" .... OnRowCreated="GridView1_RowCreated" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand"&gt; (...) &lt;td&gt; &lt;asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:GridView ID="GridView2" OnRowCreated="GridView2_RowCreated" OnRowDataBound="GridView2_RowDataBound" OnRowCommand="GridView2_RowCommand"&gt; &lt;asp:GridView ID="GridView3" ....&gt; &lt;/asp:GridView&gt; &lt;/asp:GridView&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;/td&gt; (...) &lt;/asp:GridView&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>Can it be done using <code>UpdatePanel</code>? Or is there any alternative? Please give your suggestions.</p> <p>Thanks in advance. </p>
 

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