Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I used the stock code to open my SQL table and return the dataset "User" where a Username and Password match what is entered on a login screen

 

Using a SQL query I return a dataset from the function.

 

I now want to know if the dataset is empty or not.

 

Anyone know how to actually READ the field values in ADO.net? I am going nuts with this

 

Thanks

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

  • *Gurus*
Posted

Are you using a DataAdapter? If so, you should check the return

value from the Fill method when you use it to populate your

dataset. Once you have used Fill, a new Table object will have

been added to the DataSet Tables collection. The Table object

has both a Rows and a Columns collection. As each Row object

is selected, the Columns objects have the values for that Row.

This is all just theory to me that I got from MSDN and an ADO.Net

reference. However, it makes sense to me, and I expect it works

pretty much as described.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...