Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Searching Database using Dataset in C#
Kingsley Simon
Jan 14 2014 4:20 PM
1.2k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Inserting Citation and with the corresponding Bibliography i
Running code on Exit with X