I have a ascx that looks like this:
<UpdatePanel Parent mode = Conditional>
<UpdatePanel1 mode = Conditional>
//A form here with textboxes, etc
//A repeater here with a linkbutton that causes a postback
</UpdatePanel1>
</UpdatePanel Parent>
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?
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.
EDIT AGAIN:
I think I know what's going on. I have 1 question before nailing this (hopefully). The form looks like this:
<tr>
<td>
<asp:checkbox id="chkSelect" runat="server" />
<asp:label text="Something" runat="server" />
<asp:textbox id="txtSomething" runat="server" />
</td>
</tr>
<tr>
<td>
<asp:checkbox id="chkSelect2" runat="server" />
<asp:label text="Something2" runat="server" />
<asp:textbox id="txtSomething2" runat="server" />
</td>
</tr>
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.
Is there a way to conditionally trigger updates only on those controls?
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)
@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