tailieunhanh - Lập trình .net 4.0 và visual studio 2010 part 34

là một nền tảng mà trên đó trưởng thành để xây dựng các ứng dụng web, và nó có lẽ là công bằng để nói rằng hầu hết các thay đổi trong phiên bản này được cải tiến và tweaks. Tuy nhiên, đừng bỏ qua chương này, bởi vì Microsoft đã cố định một số thiếu sót lâu dài và giới thiệu một số thay đổi rất hoan nghênh. | CHAPTER 10 is a mature platform on which to build web applications and it is probably fair to say that most of the changes in this release are enhancements and tweaks. However don t skip this chapter because Microsoft has fixed a number of long-term omissions and introduced some very welcome changes. Project Templates VS2010 contains a number of new types of project and some modifications to existing types New Empty Web Application just the bare minimum New Silverlight Web Site erm time to move on New AJAX Server Control and Server Control Extender New MVC 2 Web Application Modified Web Site and a modified Web Application like VS2008 s Web Site project but with new changes in Web Application as discussed below The Web projects now contain common authentication and profile functionality a master page with a simple layout and jQuery scripts see Figure 10-1 . 225 CHAPTER 10 Figure 10-1. New Web Application Project template One of the aspects of that irritated me was how bloated files have become. To some extent this bloat was due to and using version 2 of the CLR and in order to introduce additional functionality Microsoft had to override default settings as well as cope with different versions of IIS that is settings for IIS and settings for earlier versions . .NET however has a new version of the CLR so this is no longer a problem. A number of settings have been moved to which drastically reduces the size of . Functionality such as charting dynamic data Ajax and routing is now also automatically registered for you and so no longer has to be added to the file. Some developers may not like this addition of functionality that they may not use but for the majority it will save a bit of configuration and can be overridden in . What follows is the default .