Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- linqclassDataContext context = new linqclassDataContext();
- var q = from p in context.Tables
- where p.username == txtUsername.Text
- && p.password == txtPassword.Text
- select p;
- if (q.Any())
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement