session的值 怎么获取

[复制链接]
查看11 | 回复5 | 2013-1-6 09:37:22 | 显示全部楼层 |阅读模式
仅供参考:string name=HttpContext.Current.Session["UserName"];string pwd=HttpContext.Current.Session["Password"];...
回复

使用道具 举报

千问 | 2013-1-6 09:37:22 | 显示全部楼层
string name=session["UserName"].tostring();...
回复

使用道具 举报

千问 | 2013-1-6 09:37:22 | 显示全部楼层
你自己都写错对象了哦,会话对象是大写的啊 Session, 获取值string name= Session["UserName"];string pwd=Session["Password"];...
回复

使用道具 举报

千问 | 2013-1-6 09:37:22 | 显示全部楼层
name= Session["UserName"];...
回复

使用道具 举报

千问 | 2013-1-6 09:37:22 | 显示全部楼层
把 current 给删了。。。System.Web.HttpContext.Session...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行