asp.net - Control inside repeater causing full postback even after keeping in update panel -
in page, have 1 search button , repeater. have wrapped inside updatepanel
. search button not causes full postback, i.e ideal radiobuttonlist
inside repeater
control does. have no idea do.
<asp:updatepanel id="up" runat="server"> <contenttemplate> <table align="center" border="1" cellspacing="0" class="tabmn6"> <tr id="trheader" runat="server"> <th id="tredit" runat="server">edit</th> <th>user name </th> <th>role</th> <th>from date</th> <th>to date</th> <th>comment</th> <th>status</th> </tr> <asp:repeater id="rpuserdetails" runat="server" onitemdatabound="rpuserdetails_itemdatabound"> <itemtemplate> <tr> <td id="tdrpedit" runat="server" align="center"> <input type="button" class="editbtn" name="btnedit" id="btnedit" runat="server" onclick='<%# string.format("javascript:return addboardcast(\"{0},{1}\")", eval("bc_id"),"edit") %>'> </td> <td id="trrptl" runat="server" align="center"> <asp:label id="lbluname" runat="server" forecolor="red" text='<%#eval("username")%>' /> </td> <td align="center"> <asp:label id="lblrolename" runat="server" forecolor="black" text='<%#eval("rolename")%>' /> </td> <td align="center"> <asp:label id="lbltodate" runat="server" forecolor="black"><%#databinder.eval(container.dataitem, "bc_fromdate", "{0:dd/mm/yyyy}")%></asp:label> </td> <td align="center"><asp:label id="lblfromdate" runat="server" forecolor="black"><%#databinder.eval(container.dataitem, "bc_todate", "{0:dd/mm/yyyy}")%></asp:label></td> <td align="center" width="20%"> <div style="color: black"><%#eval("bc_comment")%></div> </td> <td align="center"> <asp:hiddenfield id="hdnbc_id" runat="server" value='<%#eval("bc_id") %>' /> <asp:hiddenfield id="hdnuserid" runat="server" value='<%#eval("userid") %>' /> <asp:radiobuttonlist id="rdstatus" runat="server" height="48px" repeatdirection="horizontal" autopostback="true" onselectedindexchanged="rdstatus_selectedindexchanged" cssclass="rad"> <asp:listitem text="active" value="1"></asp:listitem> <asp:listitem text="deactive" value="0"></asp:listitem> </asp:radiobuttonlist> </td> </tr> </itemtemplate> </asp:repeater> </table> </contenttemplate> </asp:updatepanel>
Comments
Post a Comment