Ejemplo n.º 1
0
    protected void btnChangePwd_Click(object sender, EventArgs e)
    {
        DataTable dt = dal.valiPayPwd(loginname, txtLoginPwd.Value.Trim());

        if (dt.Rows.Count > 0)                                             //支付密码正确
        {
            bool b = dal.changePayPwd(loginname, txtPayPwd1.Value.Trim()); //修改密码
            if (b)
            {
                Tz888.Common.MessageBox.Show(this.Page, "支付密码修改成功!");
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "支付密码修改失败,请重试!");
            }
        }
        else
        {
            lblMsg.Text = "密码错误!忘记了密码请点<a href='getPayPwd.aspx' class='hong'>取回</a>";
        }
    }
Ejemplo n.º 2
0
    protected void btnSetPwd_Click(object sender, EventArgs e)
    {
        Tz888.BLL.PayPwd dal = new Tz888.BLL.PayPwd();
        bool             b   = dal.changePayPwd(loginname, txtPayPwd1.Value.Trim());//修改密码

        if (b)
        {
            Tz888.Common.MessageBox.Show(this.Page, "支付密码修改成功!");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "支付密码修改失败,请重试!");
        }
    }