请问我要在下个CS类里用Session怎么用,要不要加什么namespace? 不用Session["yoursessionname"] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 using System.Web.SessionState;你可以把你的Page作为参数传入到类中 using System;using System.Web;using System.Web.Security;HttpContext.Current.Session[CART_KEY] using System.Web;HttpContext.Current.Session["Name"]="hahah"; 楼上的,认识一下吧,“hah”,我也老用`!~!呵呵 设置Session["id"];取string id=Session["id"]; 求助 Failed to create AppDomain 如何得到页面中的form1 多线程协调抓取的问题 html的拼接 前台跟后台绑定的问题 哈哈,我也来问一下问题! WEB控件中脚本问题 "类型“ASP.acax_list_ascx”同时存在于" 关于密码框的赋值 静态属性的问题!急! "缺少组件"打不开项目怎么办啊? 关于authentication的问题
你可以把你的Page作为参数传入到类中
using System.Web;
using System.Web.Security;HttpContext.Current.Session[CART_KEY]
取string id=Session["id"];