如何使用C#在ASP.NET中创建基于角色的应用程序?对于系统中的多个用户?不同的用户提供凭证? [英] How to create role based application in ASP.NET using C# ? for multiple users in the system ? different users has provide credentials ?

查看:75
本文介绍了如何使用C#在ASP.NET中创建基于角色的应用程序?对于系统中的多个用户?不同的用户提供凭证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#在asp.net中创建基于角色的应用程序?对于系统中的多个用户?不同的用户提供凭证?



我尝试过:



我已经尝试过身份验证但没有想到。请任何有解决方案的人给我一些想法..

how to create Role Based application in asp.net using c# ? For multiple users in the system ?Different users has provide credentials ?

What I have tried:

I have tried in authentication but not got an idea . please anybody having solution give me idea about it ..

推荐答案

创建一个新的网络应用程序并确保选择个人用户帐户作为身份验证类型



在Visual Studio 2013中创建ASP.NET Web项目| ASP.NET站点 [ ^ ]



这将为您提供一个使用Identity的空白项目,它将为您提供所有功能盒子。查看有关Identity的代码或Google教程以了解更多信息。
Create a new web app and ensure "Individual user accounts" is selected as the auth type

Creating ASP.NET Web Projects in Visual Studio 2013 | The ASP.NET Site[^]

That will give you a blank project that uses Identity which will give you all that functionality out of the box. Look at the code or google tutorials on Identity to find out more.


这篇关于如何使用C#在ASP.NET中创建基于角色的应用程序?对于系统中的多个用户?不同的用户提供凭证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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