private void button1_Click(object sender, EventArgs e)
{
TransportSystemDataSetTableAdapters.StaffTableAdapter s1 = new TransportSystemDataSetTableAdapters.StaffTableAdapter();
//search staff table database
//where textbox1.text = staffid nd textbox2.text = staffpswd
// return true;
//else return"invalid";
}
I have this function, and I also have two textbox (textbox1 and textbox2) which is for the ID and Password of a staff.
When staff clicks button, I want to search my database if his record exists and return true or invalid. but I want to do this using the Dataset.
How do I do this?
Thanks