|
 |
aspx thread: dropdownlist recordcount
Message #1 by Ankur Kalsi <akalsi@q...> on Tue, 7 Aug 2001 14:18:30 -0700
|
|
I have a bound dropdownlist and the data is coming from SQL. How do I know
if this dropdown has any records in it or not. In other words, how do I find
out if SQL returned any data back or not.
Thanks in advance
> AK
Message #2 by Tim Heuer <TimH@i...> on Tue, 7 Aug 2001 16:48:18 -0700
|
|
Using a DataSet, DataReader, ??
Using a dataset one option would be to check for
ds.Tables[0].Rows.Count;
And if it is 0 then no rows...
-----Original Message-----
From: Ankur Kalsi [mailto:akalsi@q...]
Sent: Tuesday, August 07, 2001 2:19 PM
To: ASP+
Subject: [aspx] dropdownlist recordcount
I have a bound dropdownlist and the data is coming from SQL. How do I know
if this dropdown has any records in it or not. In other words, how do I find
out if SQL returned any data back or not.
Thanks in advance
> AK
Message #3 by Ankur Kalsi <akalsi@q...> on Tue, 7 Aug 2001 17:08:23 -0700
|
|
Is it possible using DataReader.
-----Original Message-----
From: Tim Heuer [mailto:TimH@i...]
Sent: Tuesday, August 07, 2001 4:48 PM
To: ASP+
Subject: [aspx] RE: dropdownlist recordcount
Using a DataSet, DataReader, ??
Using a dataset one option would be to check for
ds.Tables[0].Rows.Count;
And if it is 0 then no rows...
-----Original Message-----
From: Ankur Kalsi [mailto:akalsi@q...]
Sent: Tuesday, August 07, 2001 2:19 PM
To: ASP+
Subject: [aspx] dropdownlist recordcount
I have a bound dropdownlist and the data is coming from SQL. How do I
know
if this dropdown has any records in it or not. In other words, how do I
find
out if SQL returned any data back or not.
Thanks in advance
> AK
|
|
 |