Beispiel #1
0
    protected void btnnext_Click(object sender, EventArgs e)
    {
        string username = txtusername.Text;

        DataSet dsuser = new DataSet();

        dsuser = objlogindal.getSecurityByUserName(username);

        if (dsuser.Tables[0].Rows.Count > 0)
        {
            MultiView1.ActiveViewIndex = 1;
            txtsecurityquestion.Text   = dsuser.Tables[0].Rows[0]["securityquestion"].ToString();
        }
        else
        {
            Response.Write("<script>alert('Username does not exists.');</script>");
        }
    }