如何在asp .net C#登录和注册memberprofile页面中创建会话 [英] How to Create Session in asp .net C# login and registration memberprofile page

查看:74
本文介绍了如何在asp .net C#登录和注册memberprofile页面中创建会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP .net C的新手#

i创建了注册,登录和会员资料页面



所有验证数据存储在数据库..

和登录页面也工作正常...



i不知道会话..我可以创建会话以及如何使用会话使登录模块更有效吗?



提前感谢

解决方案

在登录时你可以使用这个



会话[用户名] = usernametxt.Text; //或从数据集中分配





有关会话的更多信息,请检查此内容 [< a href =http://www.codeproject.com/KB/aspnet/ExploringSession.aspxtarget =_ blanktitle =New Window> ^ ]


登录会话时请访问此站点地址。

http://www.youtube.com/watch?v=cyLPqxxZc64


登录会话P租借访问本网站地址。

http://www.youtube.com/watch?v=cyLPqxxZc64

http://www.youtube.com/watch?v = fVia0YxfNAM&安培;特征= relmfu

I am new to ASP .net C#
i created registration,login and member profile page

after all validations data is stored in database..
and login page also working fine...

i dont know about sessions ..how can i create session and how to make login module more effective using sessions?

thanks in advance

解决方案

at login you can use this

Session["username"]=usernametxt.Text;//or assign it from dataset



For more info on session check this[^]


At login with session Please visit this site Address.
http://www.youtube.com/watch?v=cyLPqxxZc64


At login with session Please visit this site Address.
http://www.youtube.com/watch?v=cyLPqxxZc64
http://www.youtube.com/watch?v=fVia0YxfNAM&feature=relmfu


这篇关于如何在asp .net C#登录和注册memberprofile页面中创建会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆