Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- SqlDataAdapter sda = new SqlDataAdapter("Select UserName, Password From LogInProfile Where UserName ='" +textBox1.Text+ "' and Password ='" +textBox2.Text+ "' ",con);
- DataTable dt = new DataTable();
- sda.Fill(dt);
- if (dt.Rows.Count == 1)
- {
- BMS obj = new BMS();
- obj.Show();
- this.Hide();
- }
- else
- {
- MessageBox.Show("Invalid Username Or Password !", "Error", MessageBoxButtons.OK);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement