A
Adam Clauss
Alright, as much as I've done CSharp, I've done very little with databases with it. So I'm just kind of messing around with,
learning how it works.
I am using the ADO.NET adapter provided with MySQL in a very simple web application.
I have the connection, data adapter, and typed datasets created. In response to a button submit, I perform the following:
accountsDataAdapter.Fill(accountsDS1);
Label_Accounts.Text = accountsDS1.accounts.Count.ToString();
The label gets set to 0 - even though there ARE accounts present in the table. In fact, if I instead do:
Label_Accounts.Text = accountsDataAdapter.Fill(accountsDS1).ToString();
I correctly return 46.
Its possible its a problem in the custom data provider, but I wanted to be sure I was using it correctly first
Thanks!
learning how it works.
I am using the ADO.NET adapter provided with MySQL in a very simple web application.
I have the connection, data adapter, and typed datasets created. In response to a button submit, I perform the following:
accountsDataAdapter.Fill(accountsDS1);
Label_Accounts.Text = accountsDS1.accounts.Count.ToString();
The label gets set to 0 - even though there ARE accounts present in the table. In fact, if I instead do:
Label_Accounts.Text = accountsDataAdapter.Fill(accountsDS1).ToString();
I correctly return 46.
Its possible its a problem in the custom data provider, but I wanted to be sure I was using it correctly first

Thanks!