All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP实例程序:实现给上传图片加水印图案的做法_php资料_编程技术
使用ASP.NET中的一点体会[关于代码分离]_[Asp.Net教程]
asp.net2.0页面数据缓存的应用实例
PHP教程实例:用PHP打造动态聊天室系统_[PHP教程]
Apache 2.2 完全参考手册(中文版)_[PHP教程]
RIA和AJAX分析_[AJAX教程]
SQL SERVER数据库开发之存储过程应用_[SQL Server教程]
Web.Config配置节加密和解密_[Asp.Net教程]
DIV+CSS网页制作布局技巧学习_[Html教程]
.NET,2.0中的企业库异常处理块简述_[Asp.Net教程]
Reading number is top 10 pictures
9.3阅兵全景图3-外国方阵梯队和坦克方阵梯队
China's family planning commission forced abortions 270 million newborns for 30 years
NeedWallpaper3
007 James. bond's new lover
PengLiYuan lady for the world health organization fight TB and AIDS goodwill ambassador
The real super beauty3
A letter to parents choose world of warcraft seven big reason
Athena chu perspective cheongsam shine with New York
A man's favorite things11
沙漠里的美女
Download software ranking
终极变速大师Speeder3.26
The Bermuda triangle1
传奇私服架设教程
Desire a peach blossom
Boxer's Top ten classic battle7
Boxer's Top ten classic battle8
Boxer's Top ten classic battle3
WebService在.NET中的实战应用教学视频 → 第5集
Unix video tutorial13
JSP+Ajax Web development typical examples
归海一刀 published in(发表于) 2014/1/30 1:29:44 Edit(编辑)
session简要用法实例_[Asp.Net教程]

session简要用法实例_[Asp.Net教程]

session简要用法实例_[Asp.Net教程]
如果创建一个类如user类
public Class User
{
public string userName;
public string userPwd;
}

当一个用户登录的时候你可以创建一个用户类,把用户的所有信息都保存到session中
User user=new User();
user.userName=yangrongqi;
user.userPwd=123456;
session["user"]=user;
也就是现在session["user"]中已经存在了这个用户的用户名和密码。当你在另一个页面中用到用户名和密码的时候
则需要将session["user"]强制转化成User类,然后调用。
User member=new User();
member.userName=(User)Session["user"].userName;
member.Pwd=(User)Session["user"].Pwd;


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.