RCurrie
11-16-2004, 08:55 PM
Basically just a simple question...though I'm just starting with VB, ASP.NET & SQL.
But I have 2 DataGrids in my ASP.NET project. They both reference different tables in the same database. Sometimes these tables are empty, sometimes they have data in them.
Basically, all I'd like to do is check the tables, if they're empty...do some operation. If they are not empty, just ignore.
Make sense? I have created a few quert strings, but was unsure on how to interpret their meaning...since the values in the tables are numerical, and the query strings are...well strings.
I'm not too familiar with the DataReader functionality of ASP, but thought there would be an easier way to simply read one data field, ANY data field, in the table just to check if it had a value or not. If there is ANY value at all, then don't proceed.
Any & All help is greatly appreciated, thanks so much.
But I have 2 DataGrids in my ASP.NET project. They both reference different tables in the same database. Sometimes these tables are empty, sometimes they have data in them.
Basically, all I'd like to do is check the tables, if they're empty...do some operation. If they are not empty, just ignore.
Make sense? I have created a few quert strings, but was unsure on how to interpret their meaning...since the values in the tables are numerical, and the query strings are...well strings.
I'm not too familiar with the DataReader functionality of ASP, but thought there would be an easier way to simply read one data field, ANY data field, in the table just to check if it had a value or not. If there is ANY value at all, then don't proceed.
Any & All help is greatly appreciated, thanks so much.