protected void btndel_Click(object sender, EventArgs e)
{
SqlConnection con123 = new SqlConnection();
con123.ConnectionString = @"Data Source=viral\sqlexpress;Initial Catalog=mydata23;Integrated Security=True";
string qu1 = "delete from table_1 where (username='" + txtuser.Text + "', password='" + Txtpass.Text + "')";
SqlCommand dsa = new SqlCommand(qu1, con123);
con123.Open();
dsa.ExecuteNonQuery();
con123.Close();
Response.Write("deleted");
}
SqlConnection con123 = new SqlConnection();
con123.ConnectionString = @"Data Source=viral\sqlexpress;Initial Catalog=mydata23;Integrated Security=True";
SqlConnection con123 = new SqlConnection();
con123.ConnectionString = @"Data Source=viral\sqlexpress;Initial Catalog=mydata23;Integrated Security=True";
string qu1 = "delete from table_1 where (username='" + txtuser.Text + "', password='" + Txtpass.Text + "')";
SqlCommand dsa = new SqlCommand(qu1, con123);
con123.Open();
dsa.ExecuteNonQuery();
con123.Close();
Response.Write("deleted");
string qu1 = "delete from table_1 where (username='" + txtuser.Text + "', password='" + Txtpass.Text + "')";
SqlCommand dsa = new SqlCommand(qu1, con123);
con123.Open();
dsa.ExecuteNonQuery();
con123.Close();
Response.Write("deleted");