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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -