Last post Jan 19, 2012 02:09 AM by chetan.sarode
Jan 18, 2012 03:33 PM|sbmdude|LINK
I have update panel in which I have radio buttons, labels and buttons. When I click button it is causing partial postback but when I click radio button list it is causing full postback what might be the issue ? Pelase help. This application is migrated from
.NET 1.1 to .NET4.0 I have even changed the xhtmlConformance mode="Legacy"/> to xhtmlConformance mode="Strict"/>"
Even with button partial post back is coming if I use Asynchronous Postback otherwise it doesn't work.
Jan 18, 2012 04:22 PM|sushanth009|LINK
When any elemnt with AutoPostBack="True" property is set , when an event is performed a PostBack occurs and the whole page gets refreshed.. In your case because the RadioButttonList is not set as a trigger to the Update Panel it causes a Post back .. To
avoid this you need to set the
<asp:UpdatePanel ID="UP1" runat="server" UpdateMode="Conditional">
<asp:AsyncPostBacktrigger ControlID = "RadioButtonList1" />
<asp:AsyncPostBacktrigger ControlID = "Button1" />
AutoPostBack="True runat="server"> </asp:RadioButtonList >
runat="server"> </asp:Button >
Try something like this and see if this helps..
Jan 18, 2012 05:15 PM|sbmdude|LINK
I already did that
<asp:AsyncPostBackTrigger ControlID="rbtnMain" EventName="SelectedIndexChanged" />
no luck.. any ideas
Jan 19, 2012 02:09 AM|chetan.sarode|LINK
Refer this thread
According to following post there's an issue with list controls like RadioButtonList or CheckBoxList used as trigger for an UpdatePanel. The full postback happens because the trigger registers the list container as an asynchronous control but the postback
is fired by a child control with a different id. I've added this issue to the
unofficial bug/issue list.
You need do registerAsyncPostBackControl each time in page load phase. Or you can try the client-side appraoch.
Define html checkbox input control. In onchange event, you can call $get('id'') .style.display="none"/"block"; to show or hide the panel and update the updatepanel via the client-side approach.