Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SqlConnection con = new SqlConnection(@"Data Source=NICKY-PC;Initial Catalog=CRUD;Integrated Security=True;");
- SqlDataAdapter sda = new SqlDataAdapter("Select count(*) From Login where Username='" + textBox1.Text + "' and Password ='" + textBox2.Text + "'",con);
- DataTable dt = new DataTable();
- sda.Fill(dt);
- if (dt.Rows[0][0].ToString() == "1")
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement