Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Professional ASP.NET 3.5 in C# and Visual Basic Part 162. Building on the revolutionary ASP.NET 2.0 release, ASP.NET 3.5 adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in ASP.NET 2.0 now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS | Appendix A Migrating Older ASP.NET Projects The final step is a warning on how to handle the project if it is controlled by a source control system. If it is you want to ensure that the project or any of its components are checked out by someone. You also want to ensure that the check-in capabilities are enabled. This warning is shown in Figure A-7. Figure A-7 When you are ready to convert the project click the Finish button. The actual conversion process could take some time so allow a few minutes for it. When the process is complete you are offered a completion notification that also enables you to see the conversion log that was generated from the conversion process Figure A-8 . After the project is converted you are presented with the conversion log as shown in Figure A-9. 1576 Appendix A Migrating Older ASP.NET Projects Figure A-8 Figure A-9 1577 Appendix A Migrating Older ASP.NET Projects As you look over the project in the Solution Explorer notice that some major changes have been made to the project. Some of these changes include the following All class files are removed from their folders and placed in the new App_Code folder. The folder from which the class files were removed is left in place even if the folder is empty after all the class files are removed. All the Visual Studio .NET 2002 2003 Web project files are deleted because Visual Studio 2008 does not use these any longer. The application s DLL is deleted from the Bin folder. All the .aspx pages have had their @Page directives changed. An example from the Default.aspx page shows that the previousc @Page directive was constructed as @ Page Language c CodeBehind Default.aspx.cs AutoEventWireup false Inherits ASPNET.StarterKit.IssueTracker._Default After the conversion process the @Page directive now appears as @ Page Language c Inherits ASPNET.StarterKit.IssueTracker._Default CodeFile Default.aspx.cs The code-behind classes for the .aspx pages are converted to partial classes presented here in C . .