加命名空间(可能需要在项目中先加引用,再在类中如下引用)
using System.Web.SessionState; HttpContext.Current.Session["TotalPage"].ToString(); HttpContext.Current.Request.QueryString["cid"].ToString();
加命名空间(可能需要在项目中先加引用,再在类中如下引用)
using System.Web.SessionState; HttpContext.Current.Session["TotalPage"].ToString(); HttpContext.Current.Request.QueryString["cid"].ToString();
转载于:https://www.cnblogs.com/lyq666666/p/10709597.html