I’m working on VS2010 c#.
I have a datatable containing username and passwords:
____________
andy | 1234
joni | 5678
lara | 4567
How do I form a function that will see what the user entered in a textbox and review if it is in the database or not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could write a
SQL Functionand do something like:Then in your C# program you could use
ADO.NETand do:You could then call the function by doing:
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx