摘要
多数网站都需要验证机制对用户身份进行验证并授予用户相应权限。为了提高开发人员在身份验证方面的效率,ASP.NET 2.0中增加了一套专门用于身份验证的新控件及API。介绍了ASP.NET 2.0中新推出的验证控件和验证API的功能,然后通过解决一个网站开发中遇到的身份验证问题,说明了这些控件和API的使用方法。从中可以看出使用ASP.NET 2.0的验证机制,仅仅书写少量代码便可以完成以往需要大量时间和代码才能完成的任务,从而证明ASP.NET 2.0验证机制的确极具易用性和实用性。
Authentication mechanism is needed in most web sites to judge users and grand corresponding rights to them. In order to improve the efficiency of authentication for programmers, ASP. NET 2.0 adds a suite of new authentication controls and APIs intended for authentication. First introduces the functions of the new authentication controls and APIs in ASP. NET 2.0, and then specifies how to use these controls and APIs through solving an authentication problem in building a web, from which can see that with the authentication mechanism of ASP. NET 2.0, just a few codes can do the same thing with the previous way of writing many codes with much time, thus to prove its facility, practicability and expansibility.
出处
《计算机技术与发展》
2009年第2期209-212,共4页
Computer Technology and Development