ue = Session["LoginInfo"]

[复制链接]
查看11 | 回复2 | 2008-4-10 10:46:15 | 显示全部楼层 |阅读模式
ue = Session["LoginInfo"]; 如果ue是string变量的话,可以这样做 ue = Session["LoginInfo"].ToString();
回复

使用道具 举报

千问 | 2008-4-10 10:46:15 | 显示全部楼层
(string)Session["LoginInfo"]也行
回复

使用道具 举报

千问 | 2008-4-10 10:46:15 | 显示全部楼层
Session["LoginInfo"] 是object类型把赋值给ue的时候则需要转换成ue对应的类型转型方法,一楼正解
回复

使用道具 举报

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

本版积分规则