且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Asp.Net Web应用程序中限制网站

更新时间:2022-11-05 20:57:32

很明显,创建一些仅限于绝对所有用户的网页是绝对没有意义的。这意味着您希望为某些用户限制某些资源并使其可供其他用户使用。这不合逻辑吗?如果是这样,那实际上意味着用户应该进行身份验证。你可以从学习ASP.NET开始,例如,在这里:

http://msdn.microsoft.com/en-us/library/eeyk640h%28v=vs.140%29.aspx [ ^ ],

http://www.asp.net/visual-studio / overview / 2013 / creation-web-projects-in-visual-studio#auth [ ^ ],

http://www.asp.net/web-api/overview/security/basic-authentication [ ^ ]。



Thi CodeProject的文章也很有用: ASP.NET身份验证和授权 [ ^ ]。



-SA
It is apparent that there would be absolutely no point to create some Web pages restricted to absolutely all users. It means that you want to restrict some resources for some users and make them available for others. Isn't that logical? If so, it really means that the users should be authenticated. You can start with learning ASP.NET starting, for example, here:
http://msdn.microsoft.com/en-us/library/eeyk640h%28v=vs.140%29.aspx[^],
http://www.asp.net/visual-studio/overview/2013/creating-web-projects-in-visual-studio#auth[^],
http://www.asp.net/web-api/overview/security/basic-authentication[^].

This CodeProject article can also be useful: ASP.NET authentication and authorization[^].

—SA