473,503 Members | 12,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

table row count of 0 for populated table

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?
Jul 21 '05 #1
3 1169
zBobby,

Is this in a postback situation?

Cor
Jul 21 '05 #2
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.

"Cor Ligthert" wrote:
zBobby,

Is this in a postback situation?

Cor

Jul 21 '05 #3
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
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1900
by: Dariusz | last post by:
I have written a database that counts the number of times a file has been accessed, so I can then later display the results on what is "hot" and what is not. At the moment all it does is count the...
6
8321
by: Jason | last post by:
I need to populate a table from several sources of raw data. For a given security (stock) it is possible to only receive PARTS of information from each of the different sources. It is also...
1
4817
by: russ | last post by:
Hi all, Here's a problem I'm having with a dynamic table. Following the guidelines here (http://www.codeproject.com/aspnet/dynamiccontrols.asp), which make perfect sense. The problem is that...
4
2535
by: j420exe | last post by:
I have 3 tables: ARTISTS, ART and PAINTINGS ARTISTS has columns (data): userid (adam, betty, gil, jack, larry, steve, tyler) full_name (firstname lastname) ART has columns: art_id (auto number...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.