Membership修改密码

MembershipUser mu = Membership.GetUser(labelUserName.Text.Trim());//获取资格用户
  try
    {
      bool flat = mu.ChangePassword(txtOldPassword.Text.Trim(), txtPassword.Text.Trim());
      if (flat == true)
        {
          Response.Write("<script>alert('修改成功!');</script>");
        }
      else
        {
          Response.Write("<script>alert('修改失败!');</script>");
        }
  catch (Exception ex)
    {
      Response.Write("<script>alert('" + ex.Message.ToString() + "');</script>");
    }
上一篇:二次封装Response类 | 视图类传递参数给序列化类context


下一篇:BIEE建模参考规范