Asp.net VB登录并在母版页上注销用户 [英] Asp.net vb log in and log out a user on a masterpage

查看:141
本文介绍了Asp.net VB登录并在母版页上注销用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对asp.net 4.0 vb还是陌生的.我已经设计了一个母版页,并且希望使用会话登录并注销,以便在用户登录时,用户名显示在顶部,并且登录会自动更改为注销.我不知道从哪里开始.你们可以帮我吗?我已经设计了数据库,因为要登录的人可能是用户或管理员.
我需要您的指导以帮助我.谢谢

I am still new to asp.net 4.0 vb . i have design a masterpage and i wish to have a log in and log out in it using session so that when the user log in, the user''s name is shown on the top and the log in automatically changes to log out. I have no idea where to start with it. Can u guys help me ? i have already designed the database because the person to log in may either be a user or the admin .
i need guidelines from you to help me out. Thank you

推荐答案

如果您是ASP.net的新手,我不建议您滚动自己的用户管理.首先使用内置功能:

了解ASP.NET角色和成员资格-入门教程 [ ^ ]
If you''re new to ASP.net I wouldn''t recommend rolling your own user management. User the built in features first:

Understanding ASP.NET Roles and Membership - A Beginner''s Tutorial[^]


这篇关于Asp.net VB登录并在母版页上注销用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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