登陆验证
昨天下到了ASP.NET 2.0得开发工具,给我的第一感觉是界面又比VS.NET 2003有了提高。微软的东西在界面上面总是给人新的感觉,这次ASP.NET 2.0的增加了很多以前需要费尽心机开发很久的控件,增强了很多功能。
昨天把里面的几乎每个控件都拿来用了一下,在界面上面,对每个控件的设计可以通过一个弹出的窗口进行,页面和代码的智能感应比以前更加强大。
先来看看我的第一个使用Login控件构造的WebSite。
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
在Login1_Authenticate中加入验证,然后根据验证设置e.Authenticated的值,true或者false,在Login1_LoggedIn中处理成功登陆之后的操作。在Login1_LoginError中处理登陆失败之后的操作。等等
总的感觉是IDE更加智能化,代码量也变少了,据介绍称代码量比ASP.NET 少70%。