Sunday, May 30, 2010

What's New in ASP.NET 4 and Visual Web Developer

The .NET Framework version 4 includes enhancements for ASP.NET 4 in targeted areas. Visual Studio 2010 and Microsoft Visual Web Developer Express also include enhancements and new features for improved Web development. This document provides an overview of many of the new features that are included in the upcoming release.



This topic contains the following sections:


•ASP.NET Core Services


•ASP.NET Web Forms

•ASP.NET MVC

•Dynamic Data


•ASP.NET Chart Control

•Visual Web Developer Enhancements


•Web Application Deployment with Visual Studio 2010


•Enhancements to ASP.NET Multi-Targeting




ASP.NET Core Services


--------------------------------------------------------------------------------


ASP.NET 4 introduces many features that improve core ASP.NET services such as output caching and session state storage.



Extensible Output Caching


Since the time that ASP.NET 1.0 was released, output caching has enabled developers to store the generated output of pages, controls, and HTTP responses in memory. On subsequent Web requests, ASP.NET can serve content more quickly by retrieving the generated output from memory instead of regenerating the output from scratch. However, this approach has a limitation — generated content always has to be stored in memory. On servers that experience heavy traffic, the memory requirements for output caching can compete with memory requirements for other parts of a Web application.




ASP.NET 4 adds extensibility to output caching that enables you to configure one or more custom output-cache providers. Output-cache providers can use any storage mechanism to persist HTML content. These storage options can include local or remote disks, cloud storage, and distributed cache engines.


Output-cache provider extensibility in ASP.NET 4 lets you design more aggressive and more intelligent output-caching strategies for Web sites. For example, you can create an output-cache provider that caches the "Top 10" pages of a site in memory, while caching pages that get lower traffic on disk. Alternatively, you can cache every vary-by combination for a rendered page, but use a distributed cache so that the memory consumption is offloaded from front-end Web servers.


You create a custom output-cache provider as a class that derives from the OutputCacheProvider type. You can then configure the provider in the Web.config file by using the new providers subsection of the outputCache element


For more information and for examples that show how to configure the output cache, see outputCache Element for caching (ASP.NET Settings Schema). For more information about the classes that support caching, see the documentation for the OutputCache and OutputCacheProvider classes.


By default, in ASP.NET 4, all HTTP responses, rendered pages, and controls use the in-memory output cache. The defaultProvider attribute for ASP.NET is AspNetInternalProvider. You can change the default output-cache provider used for a Web application by specifying a different provider name for defaultProvider attribute.


In addition, you can select different output-cache providers for individual control and for individual requests and programmatically specify which provider to use. For more information, see the HttpApplication.GetOutputCacheProviderName(HttpContext) method. The easiest way to choose a different output-cache provider for different Web user controls is to do so declaratively by using the new providerName attribute in a page or control directive, as shown in the following example:



See full details: http://msdn.microsoft.com/en-us/library/s57a598e.aspx

28 comments:

韋于倫成 said...

自拍走光貼性自拍自拍貼熟女自拍俱樂部台灣美女自拍寫真圖片免費av女優線上電影免費av片上看免費av片線上觀看免做愛影片免看色情片免妹影片西洋成人色片西洋辣妹做愛西洋影片網西洋線上影片免下載a片線上看免下載成人片免下載做愛影片免下載情色影片免下載無碼短片免卡通影片免免費成人影片免妹成人影片免妹視訊免費av成人情色電影免費av成人電影免費a片長片下載免費a片馬上看免費a片動漫下載免費a片照片上班族聊天室 免費a片下載 免費視訊666成人

子名子名 said...

喜歡你的部落格,留言請您繼續加油...............................................................

瓊文TamMcfee0520 said...

人不能像動物一樣活著,而應該追求知識和美德..................................................

lulu said...

不要把生命看得太嚴肅,反正我們不會活著離開。..................................................................

涂宛臻 said...

人不能像動物一樣活著,而應該追求知識和美德.................................................................                           

江婷 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。......................................................................

明霖明霖 said...

成熟,就是有能力適應生活中的模糊。.................................................................

星美星美 said...

Hello~安安唷~很高興見到你哦!!............................................................

玉苓玉苓 said...

一個人的際遇在第一次總是最深刻的,有時候甚至會讓人的心變成永遠的絕緣。............................................................

PearleY建佑 said...

看到大家都留言-我也忍不住說聲---加油..................................................................

珮陽 said...

海鷗要高飛,必先遠退。花蜜要香醇,必先久釀。............................................................

吳婷婷 said...

甘巴嗲!祝你愈來愈好!............................................................

芸茂芸茂 said...

我們必須先有哭泣,才有歡笑;也必須先感到人生的悲哀,然後才感到人生的快樂。............................................................

蔡靜芳蔡靜芳 said...

辛苦了!祝你愈來愈好!..................................................................

致念致念 said...

人們不缺少力量,他們缺少意志。..................................................

錢靜怡錢靜怡錢靜怡 said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。..................................................

楊容茂楊容茂 said...

不論做什麼事,相信自己,別讓別人的一句話,把你擊倒。..................................................

秀吉秀吉 said...

人生中最好的禮物就是屬於自己的一部份............................................................

宛淑芳真 said...

臨淵羨魚,不如退而結網。.......................................................

陳宇緯陳宇緯陳宇緯 said...

教育無他,愛與榜樣而已............................................................

偉曹琬 said...

朋友是一面鏡子......................................................................

佳幸雨幸雨幸雨俐 said...

Pen and ink is wits plough...................................................................

劉王育正劉王育正 said...

happy to read~ thank you!............................................................

江趙雲虹趙雲虹仁昆 said...

^^ 謝謝你的分享,祝你生活永遠多彩多姿!............................................................

1615 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

翊翊翊翊張瑜翊翊翊 said...

傻氣的人喜歡給心 雖然每次都被笑了卻得到了別人的心..................................................................

王雅俊 said...

happy to read~ thank you!............................................................

建枫 said...

成功多屬於那些很快做出決定,卻又不輕易變更的人。而失敗也經常屬於那些很難做出決定,卻又經常變更的人.................................................... ............