Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdatePanel rerenders form
    text
    copied!<p>I have a ascx that looks like this:</p> <pre><code>&lt;UpdatePanel Parent mode = Conditional&gt; &lt;UpdatePanel1 mode = Conditional&gt; //A form here with textboxes, etc //A repeater here with a linkbutton that causes a postback &lt;/UpdatePanel1&gt; &lt;/UpdatePanel Parent&gt; </code></pre> <p>In the OnItemCommand of the repeater, I get the form values and set them. It works fine but there is re-rendering of the form (ie., a flicker during which the form disappears and reappears). Why is this happening considering i have it in an UpdatePanel?</p> <p><strong>EDIT: I seem to have half solved the problem by separating the form and the repeater into its different updatepanels. But, the problem now is that the form doesnt get updated when I click on the linkbutton in the repeater even though the server side code runs.</strong></p> <p>EDIT AGAIN:</p> <p>I think I know what's going on. I have 1 question before nailing this (hopefully). The form looks like this:</p> <pre><code>&lt;tr&gt; &lt;td&gt; &lt;asp:checkbox id="chkSelect" runat="server" /&gt; &lt;asp:label text="Something" runat="server" /&gt; &lt;asp:textbox id="txtSomething" runat="server" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:checkbox id="chkSelect2" runat="server" /&gt; &lt;asp:label text="Something2" runat="server" /&gt; &lt;asp:textbox id="txtSomething2" runat="server" /&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p>All I care about when the linkbutton is clicked is to update ONLY the textbox controls. I want everything else to remain the way they were.</p> <p>Is there a way to conditionally trigger updates only on those controls?</p> <p>I understand I can use JS but would rather avoid it (as there's a lot of server side processing before I know the values of the textboxes)</p> <p><strong><em>@Roselberg - The state of the controls that I am NOT interested in, is actually set on the client side in one huge JS script that runs on load to which I really don't have much control over the script</em></strong></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