Author: chandu123 | Posted on: 5/22/2009 8:24:03 AM | Views : 259

  
protected void Page_Load(object sender, EventArgs e) { if (Session["username"] != null) { TextBox1.Text = Session["username"].ToString(); } } protected void Button1_Click(object sender, EventArgs e) { con.Open(); SqlCommand cmd = new SqlCommand("select Password from regform where UserName= '" + TextBox1.Text + "'", con); SqlDataReader rdpwd = cmd.ExecuteReader(); rdpwd.Read(); if (TextBox2.Text != rdpwd[0].ToString()) { Response.Write("<script>a ...

Go to the complete details ...