samedi 3 août 2019

How to implement forgot password with security question and answer in asp.net

I Need to do the back end code for forgot password using question and answer. Please help

I created the crud statement already but my problem is, how do vaeri in code behind to then redirect to change password try { // connecting to database string connString = "Data Source=DTP216;Initial Catalog=StudentInfo;User ID=sa;Password=p@55word";

        SqlConnection conn = new SqlConnection(connString);


        conn.Open();

        // constructing the select statement
       SqlCommand cmd = conn.CreateCommand();
       cmd.CommandText = @"SELECT userQuestion,userAnswer FROM  tbl_UserInfo WHERE userQuestion = '" + txtEmail.Text + "' AND userAnswer = '" + txtAnswer.Text + "'"; 

        }

Aucun commentaire:

Enregistrer un commentaire