I am using this code in my textbox. i want when user enter his password in this text box this box auto post box and check pasword is true or not. if password is true then is visible the panel and i can subit my form
protected void txtPass_TextChanged(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(constring);
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
con.Open();
cmd.CommandText = "select Password from Request_Master where User_Name='" + User + "' ";
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds, "usr");
if (ds.Tables["usr"].Rows.Count > 0)
{
string pass1 = ds.Tables["usr"].Rows[0]["Password"].ToString();
if (pass1 == txtPass.Text)
{
Panel3.Visible = true;
}< ...
Go to the complete details ...