ASP.NET C#:入门ASP.NET验证

问题描述:

我在开发ASP.NET我的第一个门户网站,在这里我想有认证。我听说ASP.NET有相当大的和精心打造的认证系统,但我从来没有使用过。你可以建议一些教程或样品code,可以帮助我从ASP.NET验证的基本知识?

I'm developing my first web portal in ASP.NET where I would like to have authentication. I have heard that ASP.NET has quite a big and well-built authentication system, but I've never used it before. Could you suggest some tutorials or sample code that could help me get started from the basics of ASP.NET authentication?

专门为我建立了门户网站,我想,让用户有机会获得评论功能和​​特定页面(这意味着我必须动态地检查是否有用户登录 - 如何),就像一个小例子。我知道的认证,因此,安全是巨大的话题,但我只是寻找一个基本的初学者解决方案,如何建立必要的登录和注册表格,以及后端的功能。在此先感谢!

Specifically for the portal I'm building, I'd like to let users have access to commenting functions and certain pages (this means I'll have to dynamically check if a user is logged in - how?), just as a small example. I know that authentication, and thus, security, are huge topics, but I'm just looking for a basic beginner solution, as to how to set up the needed login and register forms, as well as the back-end functions. Thanks in advance!

先来看看的该教程(认证在ASP.NET:.NET安全指南)模式与放大器;最佳实践团队的。据介绍常见的认证基本知识。然后继续一个(说明:在ASP.NET 2.0窗体身份验证)这也解释了通过模式与功放细节窗体身份验证;最佳实践团队。

First take a look at that tutorial (Authentication in ASP.NET: .NET Security Guidance) of Patterns & Best Practices Team's. It explains common authentication basics. Then continue that one (Explained: Forms Authentication in ASP.NET 2.0) which explains Forms Authentication in detail by Patterns & Best Practices Team.