Exemple #1
0
    protected void btn_Reset_Click(object sender, EventArgs e)
    {
        if (!String.IsNullOrWhiteSpace(Request.QueryString["id"]))
        {
            if (txtPass.Text.Equals(txtConfrmPass.Text))
            {
                String        g     = Request.QueryString["id"];
                UserInfoModel model = new UserInfoModel();
                litResult.Text = model.ResetPass(g, txtPass.Text);


                UserInformation info = new UserInformation();
                info = model.GetUserInfoByGUID(g);
                string strSubject = "24x7 Email Validation";
                string strBody    = "Your password is :" + info.Password;
                SendEmail(info.Email, strSubject, strBody);
            }
            else
            {
                litResult.Text = "Password should Match";
            }
        }
    }