C#Web-App:验证如何为ASP.net页面提供读/写权限 [英] C# Web-App: Authentication how to give read/write permissions to ASP.net pages

查看:59
本文介绍了C#Web-App:验证如何为ASP.net页面提供读/写权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,有人能告诉我如何根据ASP.net中的角色(存在于SQL Server2000的表格中)向用户提供读/写权限吗?请帮助我....任何帮助..

hi friends, Can anyone tell me how to give read/write permissions to users based on their role(present in a table of SQL Server2000) in ASP.net?....please help me out....Thks for any help..

推荐答案

当用户登录时你必须取用户ID /名称。

查询数据库eto找到与此相关的角色。

然后把一些switch case或if else块用于许可
when the user login you have to take the user ID/Name .
query the databas eto find the role associated with that.
Then put some switch case or if else block for permission


感谢回复但有没有办法通过使用windows身份验证来做到这一点提供商?...我不太了解Windows认证提供商,但我一直在谷歌搜索,发现它也可以使用基于角色的安全提供商....但我知道它.....你可以请建议我完成任务的最佳方式.....感谢任何帮助......


thanks for reply but is there any way to do this by using windows authentication providers?...i dont know much about windows authentication providers but i have been searching in google and found that it can also be done using role based security providers....but i dint understand it.....can u please suggest me a best way to accomplish my task.....thanks for any kind of help......




当用户登录时你必须取用户ID /名字。

查询da tabas eto找到与之相关的角色。

然后放一些switch case或if else block for permission
when the user login you have to take the user ID/Name .
query the databas eto find the role associated with that.
Then put some switch case or if else block for permission



感谢您的回复,但有没有办法通过使用Windows身份验证提供商?...我不太了解Windows身份验证提供商,但我一直在谷歌搜索,发现它也可以使用基于角色的安全提供程序来完成....但我明白了......请你建议我完成任务的最佳方法.....感谢任何帮助......
thanks for reply but is there any way to do this by using windows authentication providers?...i dont know much about windows authentication providers but i have been searching in google and found that it can also be done using role based security providers....but i dint understand it.....can u please suggest me a best way to accomplish my task.....thanks for any kind of help......



Windows身份验证通常不会在Web应用程序中使用,因为它提供的安全性不足。


什么''通常使用的是基于表单的身份验证。


您是否使用.NET Framework 2.0版来开发此项目?


如果你在那里有很多工具可以简化基于角色的任务授权。


(PS你用什么语言来开发这个网站?)


-Frinny


Windows authentication is not typically used in web applications because of the lack of security that it offers.

What''s typically used is Forms Based authentication.

Are you using the .NET Framework version 2.0 to develop this project?

If you are there is a lot of tools out there that simplifies the task of role based authorization.

(PS what language are you using to develop this site?)

-Frinny


这篇关于C#Web-App:验证如何为ASP.net页面提供读/写权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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