摘要:
写入cookie中在mvc的控制器中HttpCookie GetUserID = new HttpCookie("uID", 要保存的值);GetUserID.Expires = DateTime.Now.AddDays(7);//设置过期时间this.Response.Cookies.Add(Ge... 阅读全文
摘要:
public readonly static string connStr = ConfigurationManager.ConnectionStrings["conn"].ConnectionString; //从 web.config中获得 /// /// 执行查... 阅读全文