示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //this.TXT_USERCODE.Focus();
         Session["UserInfo"] = null;
         SessionHelper.Clear();
         Server.MapPath("~");
         Response.Cookies.Add(new HttpCookie("CheckCode", ""));
         Cookie = Request.Cookies["UserInfo"];
         if (Cookie != null)
         {
             TXT_USERCODE.Text = Cookie.Values["userName"];
             TXT_PASSWORD.Attributes.Add("value", CookieHelper.DecryptQueryString(Cookie.Values["Pwd"].ToString()));
         }
     }
 }