用cookie存值
////用Request获取到客户端Cookie 判断是否为空
//if (Request.Cookies["CheckTime"] == null)
//{
// //创建Cookie 并命名
// HttpCookie cookietwo = new HttpCookie("CheckTime");
// // cookietwo.Name = "UserInfo";
// //Cookie为一年有效期
// cookietwo.Expires = DateTime.Today.AddDays(1);
// //设置Cookie对应键值
// cookietwo.Values["iyear"] = input_year.Value;
// cookietwo.Values["imonth"] = input_month.Value;
// // CookieHelp.CookieHelper.AddCookie(cookietwo);
// // 用Response添加到Cookie中
// Response.Cookies.Add(cookietwo);
//}
////用Request获取到客户端Cookie 判断是否为空
//if (Request.Cookies["CheckTime"] != null)
//{
// //读取Cookie 键值
// input_year.Value = Request.Cookies["CheckTime"]["iyear"].ToString();
// input_month.Value = Request.Cookies["CheckTime"]["imonth"].ToString();
//}