vb.net - table count getting reset after post back -
i have asp table in adding row in client side, has enableviewstate="true"
<asp:table id="tblgrid" cssclass="ca-datagrid" cellpadding="0" cellspacing="0" width="100%" enableviewstate="true" runat="server"> <asp:tablerow tablesection="tableheader" id="trheader" cssclass="ca-datagrid-header ca-mbeditdatagrid-header" runat="server" enableviewstate="true">
before post have correct count tblgrid.rows.count example tblgrid.rows.count=4 after post give me tblgrid.rows.coun=1 .
do still need use view state ? please advice !!
Comments
Post a Comment