面向不同类型用户的Asp.Net登录页面 [英] Asp.Net login page for different types of users

查看:83
本文介绍了面向不同类型用户的Asp.Net登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.net安全的新手,我想为大学网站开发一个登录页面,我的项目要求仅为学生和老师的单一登录页面,请告诉我实施此概念的最佳方法以及如何检查来自2个不同表的用户凭据

请告诉我最好的方法.........

Hai am new to.net security i want to develop a login page for a college website and my project requirement is only single login page for both student and teacher please tell me the best way to implement this concept and how can i check user credentials for both from 2 different tables

plase tell me best way............

推荐答案

http://www.w3schools.com/aspnet/webpages_login.asp [ http://stackoverflow.com/问题/10544276/如何限制访问网页的用户的不同类型 [ ^ ]
http://msdn.microsoft.com/en-us/magazine/cc301390.aspx[^]
http://www.w3schools.com/aspnet/webpages_login.asp[^]
http://stackoverflow.com/questions/10544276/how-to-restrict-access-to-web-pages-for-different-types-of-users[^]


您应该使用 Asp.net角色 [了解并实现ASP.NET自定义表单身份验证 [ ^ ] ASP.NET成员资格和角色提供者 [了解ASP.NET角色和成员资格-入门教程 [ ^ ]
开发自定义ASP.NET成员资格和角色提供程序,以从自定义部分读取用户在web.config [ ^ ]

请参考成员资格简介 [
You should use Asp.net roles[^] & privileges. Refer the links for similar articles:
Understanding and Implementing ASP.NET Custom Forms Authentication[^]ASP.NET Membership and Role Provider[^]
Understanding ASP.NET Roles and Membership - A Beginner''s Tutorial[^]
Developing custom ASP.NET Membership and Role providers reading users from custom section in the web.config[^]

Refer Introduction to Membership[^].


--Amit


这篇关于面向不同类型用户的Asp.Net登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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