protected void btnModify_Click(object sender, EventArgs e)
 {
     if (user.CheckPwd(int.Parse(Session["UID"].ToString()), txtOldPwd.Text))
     {
         if (user.UpdateUser(int.Parse(Session["UID"].ToString()), txtConfirm.Text.ToLower()) > 0)
         {
             lbMessage.Text = "修改成功!";
         }
         else
         {
             lbMessage.Text = "修改失败!";
         }
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                string userPwd = Request["userPwd"].ToString();
                if (userPwd.Trim().ToLower() == "")
                {
                    Response.Write("<font color='red'>不可为空!</font>");
                }

                else if (user.CheckPwd(int.Parse(Session["UID"].ToString()), userPwd))
                {
                    Response.Write("<font color='red'>正确!</font>");
                }
                else//UID,Name,Pass,Email,Phone,Tel,Address,IP,VIP.VName,VImg
                {
                    Response.Write("<font color='green'>错误!</font>");
                }
            }
            catch { Response.Write("<font color='red'>非法操作!</font>"); }
        }
    }