table row count of 0 for populated table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a tblLoanList.Rows.count returning as 0 but I can see the table rows
in the browser and there are 2 plus my header. I have the table generated
off of a button click and another button whose click event does the row
count. Why does it think my table is empty?
 
The table is created on the Page_Load. The intent is that an "update" button
would perform data updates and then the page loads again, now no longer
showing records whose check box had been clicked to mark them for update.

What's actually happening is I click a check box to mark a record for
update, I click the update button and the table comes back with all the data
(even the row I wanted updated and no longer shown), with all the check boxes
cleared.

I don't think it's a view state issue or a post back issue but I could be
wrong.
 
zbobby,

A webpage application is not persistent. The in my idea nicest method to
save data between the sents it so keep it in a dataset in a session. That is
direct serialized.

I don't see what code you use so therefore in VBNet.

before sending
session.item("ds") = mydataset

After postback
mydataset = directcast(session.item("ds"),dataset)

I hope this helps,

Cor
 
Back
Top