摘要: 写入cookie中在mvc的控制器中HttpCookie GetUserID = new HttpCookie("uID", 要保存的值);GetUserID.Expires = DateTime.Now.AddDays(7);//设置过期时间this.Response.Cookies.Add(Ge... 阅读全文
posted @ 2015-12-18 16:08 HEZG 阅读(193) 评论(0) 推荐(0) 编辑
摘要: public readonly static string connStr = ConfigurationManager.ConnectionStrings["conn"].ConnectionString; //从 web.config中获得 /// /// 执行查... 阅读全文
posted @ 2015-12-18 15:43 HEZG 阅读(1849) 评论(0) 推荐(0) 编辑