If (Trim(txt_pass.Text) <> Trim(txt_cpass.Text)) Then Response.Write("<script language='javascript'>alert('Password and Conform Password Should be match!!!')</script>") Else cmd.Connection = con cmd.CommandType = CommandType.Text cmd.CommandText = "insert into tbl_Login(username,password)values('" + Trim(txt_uname.Text) + "','" + Trim(txt_pass.Text) + "')" cmd.ExecuteNonQuery() Response.Write("<script language='javascript'>alert('Successfully Registered')</script>") ClearControl() If (con.State = ConnectionState.Open) Then con.Close() End If Response.Redirect("adminlogin.aspx") End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)