G
Guest
I am creating a login screen wherein only certain users are granted
permission. The names of those users,are copied into a dataset using
dataadapter.Then the dataview is used.
But the problem here is that the "Dv.Count" always evaluates ..to 0. Hence
whenever I enter the valid names "Invalid User" is prompted on the screen
I have writen the code below.
OleDbDataAdapter dAdap1 = new OleDbDataAdapter("SELECT ..[EMPLOYEE ID] FROM
EMPLOYEE;",con1);
dAdap1.Fill(DtSet);
Dv.Table=DtSet.Tables["EMPLOYEE"];
Dv.RowFilter.CompareTo(txtLogin.Text);
if(Dv.Count==0)
{
txtLogin.Text="Invalid User";
}
Kindly suggest,
permission. The names of those users,are copied into a dataset using
dataadapter.Then the dataview is used.
But the problem here is that the "Dv.Count" always evaluates ..to 0. Hence
whenever I enter the valid names "Invalid User" is prompted on the screen
I have writen the code below.
OleDbDataAdapter dAdap1 = new OleDbDataAdapter("SELECT ..[EMPLOYEE ID] FROM
EMPLOYEE;",con1);
dAdap1.Fill(DtSet);
Dv.Table=DtSet.Tables["EMPLOYEE"];
Dv.RowFilter.CompareTo(txtLogin.Text);
if(Dv.Count==0)
{
txtLogin.Text="Invalid User";
}
Kindly suggest,