c# - Button is not working with Update Panel -
i have placed timer , label displaying countdown time in update panel. have placed next button displaying next question outside update panel.
my problem button click not working update panel. without using update panel , timer works well. how can solve problem?
i have tried place whole tools inside update panel. didn't me.
here code:
<asp:updatepanel id="updatepanel1" runat="server"> <contenttemplate> <table class="style1"> <tr> <td class="style2"> <asp:timer id="timer1" runat="server" interval="1000" ontick="timer1_tick"> </asp:timer> <asp:label id="lbltimer" runat="server"></asp:label> </tr> <tr> <td style="margin-left: 40px" class="style3"> <asp:label id="lblquestion" runat="server"></asp:label> </td> </tr> </table> </contenttemplate> </asp:updatepanel> <table> <tr> <td style="margin-left: 40px" class="style2"> <asp:radiobuttonlist id="rbloptions" runat="server"> </asp:radiobuttonlist> </td> </tr> <tr> <td style="margin-left: 40px" class="style2"> <table class="style1"> <tr> <td class="style2"> <asp:button id="btnnext" runat="server" onclick="btnnext_click" text="next" width="75px" /> </td> <td> <asp:button id="btnfinish" runat="server" onclick="btnfinish_click" text="finish" width="75px" /> </td> </tr> <tr> <td class="style2"> </td> <td> <asp:label id="lblscore" runat="server">score : </asp:label> </td> </tr> </table> </td> </tr> </table> <asp:updatepanel>
i added following code.
<triggers> <asp:asyncpostbacktrigger controlid="btnnext" eventname="click"/> </triggers>
still didn't work. please me....
the selection of radio button automatically cleared when using update panel. help....?
thank you....
if using master page , add code in you're page load event
using ajaxcontroltoolkit;
toolkitscriptmanager objscriptmanager = (toolkitscriptmanager)this.master.findcontrol("scriptmanager1"); objscriptmanager.asyncpostbacktimeout = 36000;
..............
Comments
Post a Comment