2012年6月11日

实现记住用户登陆名

摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.txtUser_Id.Focus(); if (!Object.Equals(Request.Cookies["UserID"], null)) { //创建一个Cookie对象,实现记住用户名 HttpCookie readcookie = Request.Cookies["UserID"]; this.txtUser_Id.Text = readcookie.Value; } } } priva 阅读全文

posted @ 2012-06-11 20:12 中二病也要谈恋爱 阅读(181) 评论(0) 推荐(0) 编辑

导航