c# - Reading checkbox value in Table inside Panel inside Panel -
i having problem in finding table created in design time 1 row , 2 columns added more rows , columns dynamically label , checkboxes unique ids. when want save checkbox values, cannot find table using id assigned @ design time. got outer panel , id inside panel when try table first , control inside panel got null .controls = 5 panel , none of table type, literals.
<asp:fspanel runat="server" id="pnldealership" ispopup="true" popupbehaviorid="mpedealership" style="display: none; z-index: 1000"> <asp:fspanel runat="server" id="pnldatafeed"> <table id="tbldatafeed" border="1" width="100%" cellspacing="0" cellpadding="0" class="tdpadding"> <tr class="gridheader"> <td align="center" > <asp:label id="lblmddatafeedprovider" runat="server"></asp:label> </td> <td align="center" > <asp:label id="lblmdactiveinactive" runat="server"></asp:label> </td> </tr> </table> </asp:fspanel> </asp:fspanel>
and reading using c# code
string rmatch = "dfd_"; string rtblname = "tbldatafeed"; fspanel pnl1 = (fspanel)pnldealership.findcontrol("pnldatafeed"); table tbl = (table)pnl1.findcontrol(rtblname);
but tbl = null, have no idea. problem have add rows , columns , checkboxes @ run time , on save collect check/uncheck values database.
Comments
Post a Comment