SlideShare a Scribd company logo
New Features of ASP.NET 4.0Buu Nguyen, MVP (ASP.NET)www.buunguyen.net/blogbuunguyen@kms-technology.comMicrosoft Confidential1
AgendaASP.NET Web Forms 4.0ASP.NET AJAX 4.0ASP.NET MVC 2.0ASP.NET Dynamic Data
ASP.NET Web Forms 4.0
Web Forms 4.0SEO ImprovementsClean HTMLChart Control
Meta TagsAvailable in Page directive & Page objectsetout
RoutingTired of ugly URLs yet?Routing to rescuehttp://server/songs.aspx?genre=rockhttp://server/albums.aspx?year=2010&month=4&day=12http://server/songs/rockhttp://server/albums/2010/4/12
Routingdefineuselink
Meta Tags & Routing Demo
Web Forms 4.0SEO ImprovementsClean HTMLChart Control
Client IDs before 4.0Microsoft Confidential10Not so CSS-friendly and JS-friendly!!!
Client IDs in ASP.NET 4.0ClientIDMode gives developers controlCan be specified at different levelsmachine.config and web.configPageControl
ClientIDMode
Client IDs Demo
Semantically Correct MarkupRendering versionMenu control generates <ul>, <li>CheckBoxList’s and RadioButtonList’sRepeatLayout now has 4 valuesTable (old)Flow (old)OrderedList (new)UnorderedList (new)Many other small improvements
Web Forms 4.0SEO ImprovementsClean HTMLChart Control
Chart Control35 chart types3-D supportAjax supportData bindingStatistical formulaeHighly customizabilityAppearance & data serialization
Simple Static Chart
Dynamically Populated Chart
Chart Control Demo
ASP.NET AJAX 4.0
The ASP.NET AJAX Family
ASP.NET Ajax LibraryJavaScript libraryServer-side platform agnosticInclude Ajax Control Toolkit (with client-side support)Tight integration with the “adopted” jQuerySupport client-side template with DataViewProvide script loaderSupport invoking web servicesWork seamlessly with ASP.NET servicesReleased separately from ASP.NET and VS.NETLatest version: 0911 betahttp://ajax.codeplex.comMicrosoft Confidential22
Using Client ControlsAll ACT controls now available at client-sideAlso known as “Client Controls”Also exposed as jQuery’s pluginsMicrosoft Confidential23
Script LoaderManage scripts & dependenciesDetect script duplicationLoad scripts in parallelEnable lazy script loadingMicrosoft Confidential24
Client Controls & Script Loader Demo
DataViewA JavaScript component allowing JSON data to be bound to an HTML templateSupport 2-way binding, master-detail, and conditional renderingCan retrieve data from local or services (e.g. ASMX, WCF, and WCF Data Services etc.)Microsoft Confidential26
DataView Demo
ASP.NET MVC 2.0
Technology StackASP.NET Web FormsASP.NET MVCASP.NET Framework(Configuration, Security, Membership, Roles, Profiles, Routing, Caching, Session, Application State, Cookie, .aspx/.ascx/.asax/.master files etc..NET Framework
MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
AreasAllow an MVC app to have multiple “areas”Like sub-projects although sharing 1 appEach area defines its routesMicrosoft Confidential31
Partial ActionRender partial might cause coupling except for no-model partial viewPartial action to rescue: invoke action which renders UIMicrosoft Confidential32
MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
Model ValidationModel validation in MVC 1.0 is ad-hocxVal (http://xval.codeplex.com)ASP.NET MVC Validation Library (http://aspmvcvalidation.codeplex.com/)      ASP.NET MVC 2.0 solves this nicelyClient-side and server-side validationProvider for Data Annotations on server-sideAdapters jQuery and MS AJAX on client-side
Applying ValidationModelAction MethodView
Model Validation Demo
MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
Strongly-Typed Helpers1.0 Way2.0 Way
Model TemplatesASP.NET can render model based metadata provided by developersBuilt-in templates for data typesBuilt-in provider for Data AnnotationsData Annotations attributesDisplayName, HiddenInput, DataType, ReadOnly, ScaffoldColumn, DisplayFormat, and UIHint
Helper MethodsDisplayEditor
Model Templates Demo
Custom TemplatesMVC is shipped with built-in templatesCan override templates easily
Custom Templates Demo
MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
Asynchronous ControllerNo blocking-thread during IO/network-bound operation => improved throughputSource: http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
Asynchronous Controller Demo
Dynamic Data
OverviewBuilt-in page, entity, field and filter templatesEasy to customize or add new templatesDeclarative validation and renderingIntegrated with ASP.NET Web Forms and MVC applications
Dynamic Data Demo
References50
ASP.NET Web Forms 4.0URL Routinghttp://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspxClient IDshttp://weblogs.asp.net/scottgu/archive/2010/03/30/cleaner-html-markup-with-asp-net-4-web-forms-client-ids-vs-2010-and-net-4-0-series.aspxChart Control http://www.4guysfromrolla.com/articles/072209-1.aspxSEO Improvementshttp://weblogs.asp.net/scottgu/archive/2010/01/05/asp-net-4-seo-improvements-vs-2010-and-net-4-0-series.aspx
ASP.NET AJAX 4.0Libraries & source code for Ajax Libraryhttp://ajax.codeplex.comTutorials & sample apps for Ajax Libraryhttp://www.asp.net/ajaxlibraryMicrosoft Ajax CDNhttp://www.asp.net/ajaxLibrary/cdn.ashxMicrosoft Ajax Minifier 4.0http://aspnet.codeplex.com/releases/view/40584
ASP.NET MVC 2.0Model validationhttp://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspxModel Templateshttp://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.htmlStrongly-typed Helpershttp://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspxAreashttp://msdn.microsoft.com/en-us/library/ee671793%28VS.100%29.aspxAsynchronous Controllerhttp://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
ASP.NET Dynamic DataDynamic Data Presentation Layer Customizationhttp://msdn.microsoft.com/en-us/library/ee211433%28VS.100%29.aspxDynamic Data Schema Customizationhttp://msdn.microsoft.com/en-us/library/ee225428%28v=VS.100%29.aspx
Ad

More Related Content

What's hot (20)

Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
Ali Taki
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
Rahul Bansal
 
Asp.net basic
Asp.net basicAsp.net basic
Asp.net basic
Neelesh Shukla
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
Md. Mahedee Hasan
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
ASP.NET 4.0 Roadmap
ASP.NET 4.0 RoadmapASP.NET 4.0 Roadmap
ASP.NET 4.0 Roadmap
Harish Ranganathan
 
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl....net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
Nancy Thomas
 
Asp net
Asp netAsp net
Asp net
Dr. C.V. Suresh Babu
 
All About Asp Net 4 0 Hosam Kamel
All About Asp Net 4 0  Hosam KamelAll About Asp Net 4 0  Hosam Kamel
All About Asp Net 4 0 Hosam Kamel
Hosam Kamel
 
ASP
ASPASP
ASP
Ramasubbu .P
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
Kumar S
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
Ido Flatow
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
teach4uin
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
Spiffy
 
Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.net
Pankaj Kushwaha
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
Madhuri Kavade
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
Er. Kamal Bhusal
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
Sudhakar Sharma
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
Ali Taki
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
Rahul Bansal
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl....net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
Nancy Thomas
 
All About Asp Net 4 0 Hosam Kamel
All About Asp Net 4 0  Hosam KamelAll About Asp Net 4 0  Hosam Kamel
All About Asp Net 4 0 Hosam Kamel
Hosam Kamel
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
Kumar S
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
Ido Flatow
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
teach4uin
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
Spiffy
 
Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.net
Pankaj Kushwaha
 

Similar to New Features of ASP.NET 4.0 (20)

Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rtt
Lanvige Jiang
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
Shiju Varghese
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
MVC 4
MVC 4MVC 4
MVC 4
Vasilios Kuznos
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
ldcphuc
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
Naga Harish M
 
MVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHatMVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHat
Scholarhat
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
ivpol
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
joselinoneto
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
Barry Gervin
 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010
Rishu Mehra
 
Session 1
Session 1Session 1
Session 1
Asif Atick
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
Taranjeet Singh
 
Edwin John.net
Edwin John.netEdwin John.net
Edwin John.net
Edwin John
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
rsnarayanan
 
ASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web Apps
Shahed Chowdhuri
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rtt
Lanvige Jiang
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
Shiju Varghese
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
ldcphuc
 
MVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHatMVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHat
Scholarhat
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
ivpol
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
Barry Gervin
 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010
Rishu Mehra
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
 
Edwin John.net
Edwin John.netEdwin John.net
Edwin John.net
Edwin John
 
ASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web Apps
Shahed Chowdhuri
 
Ad

More from Buu Nguyen (11)

On Becoming a Technical Lead
On Becoming a Technical LeadOn Becoming a Technical Lead
On Becoming a Technical Lead
Buu Nguyen
 
C# 3.0 and 4.0
C# 3.0 and 4.0C# 3.0 and 4.0
C# 3.0 and 4.0
Buu Nguyen
 
Stories about KMS Technology
Stories about KMS TechnologyStories about KMS Technology
Stories about KMS Technology
Buu Nguyen
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
Buu Nguyen
 
HTML5 in IE9
HTML5 in IE9HTML5 in IE9
HTML5 in IE9
Buu Nguyen
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0
Buu Nguyen
 
ASP.NET MVC 2.0
ASP.NET MVC 2.0ASP.NET MVC 2.0
ASP.NET MVC 2.0
Buu Nguyen
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web Applications
Buu Nguyen
 
C# 4.0 and .NET 4.0
C# 4.0 and .NET 4.0C# 4.0 and .NET 4.0
C# 4.0 and .NET 4.0
Buu Nguyen
 
Combres
CombresCombres
Combres
Buu Nguyen
 
Fasterflect
FasterflectFasterflect
Fasterflect
Buu Nguyen
 
On Becoming a Technical Lead
On Becoming a Technical LeadOn Becoming a Technical Lead
On Becoming a Technical Lead
Buu Nguyen
 
C# 3.0 and 4.0
C# 3.0 and 4.0C# 3.0 and 4.0
C# 3.0 and 4.0
Buu Nguyen
 
Stories about KMS Technology
Stories about KMS TechnologyStories about KMS Technology
Stories about KMS Technology
Buu Nguyen
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0
Buu Nguyen
 
ASP.NET MVC 2.0
ASP.NET MVC 2.0ASP.NET MVC 2.0
ASP.NET MVC 2.0
Buu Nguyen
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web Applications
Buu Nguyen
 
C# 4.0 and .NET 4.0
C# 4.0 and .NET 4.0C# 4.0 and .NET 4.0
C# 4.0 and .NET 4.0
Buu Nguyen
 
Ad

Recently uploaded (20)

HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 

New Features of ASP.NET 4.0

  • 1. New Features of ASP.NET 4.0Buu Nguyen, MVP (ASP.NET)www.buunguyen.net/[email protected] Confidential1
  • 2. AgendaASP.NET Web Forms 4.0ASP.NET AJAX 4.0ASP.NET MVC 2.0ASP.NET Dynamic Data
  • 4. Web Forms 4.0SEO ImprovementsClean HTMLChart Control
  • 5. Meta TagsAvailable in Page directive & Page objectsetout
  • 6. RoutingTired of ugly URLs yet?Routing to rescuehttp://server/songs.aspx?genre=rockhttp://server/albums.aspx?year=2010&month=4&day=12http://server/songs/rockhttp://server/albums/2010/4/12
  • 8. Meta Tags & Routing Demo
  • 9. Web Forms 4.0SEO ImprovementsClean HTMLChart Control
  • 10. Client IDs before 4.0Microsoft Confidential10Not so CSS-friendly and JS-friendly!!!
  • 11. Client IDs in ASP.NET 4.0ClientIDMode gives developers controlCan be specified at different levelsmachine.config and web.configPageControl
  • 14. Semantically Correct MarkupRendering versionMenu control generates <ul>, <li>CheckBoxList’s and RadioButtonList’sRepeatLayout now has 4 valuesTable (old)Flow (old)OrderedList (new)UnorderedList (new)Many other small improvements
  • 15. Web Forms 4.0SEO ImprovementsClean HTMLChart Control
  • 16. Chart Control35 chart types3-D supportAjax supportData bindingStatistical formulaeHighly customizabilityAppearance & data serialization
  • 22. ASP.NET Ajax LibraryJavaScript libraryServer-side platform agnosticInclude Ajax Control Toolkit (with client-side support)Tight integration with the “adopted” jQuerySupport client-side template with DataViewProvide script loaderSupport invoking web servicesWork seamlessly with ASP.NET servicesReleased separately from ASP.NET and VS.NETLatest version: 0911 betahttp://ajax.codeplex.comMicrosoft Confidential22
  • 23. Using Client ControlsAll ACT controls now available at client-sideAlso known as “Client Controls”Also exposed as jQuery’s pluginsMicrosoft Confidential23
  • 24. Script LoaderManage scripts & dependenciesDetect script duplicationLoad scripts in parallelEnable lazy script loadingMicrosoft Confidential24
  • 25. Client Controls & Script Loader Demo
  • 26. DataViewA JavaScript component allowing JSON data to be bound to an HTML templateSupport 2-way binding, master-detail, and conditional renderingCan retrieve data from local or services (e.g. ASMX, WCF, and WCF Data Services etc.)Microsoft Confidential26
  • 29. Technology StackASP.NET Web FormsASP.NET MVCASP.NET Framework(Configuration, Security, Membership, Roles, Profiles, Routing, Caching, Session, Application State, Cookie, .aspx/.ascx/.asax/.master files etc..NET Framework
  • 30. MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
  • 31. AreasAllow an MVC app to have multiple “areas”Like sub-projects although sharing 1 appEach area defines its routesMicrosoft Confidential31
  • 32. Partial ActionRender partial might cause coupling except for no-model partial viewPartial action to rescue: invoke action which renders UIMicrosoft Confidential32
  • 33. MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
  • 34. Model ValidationModel validation in MVC 1.0 is ad-hocxVal (http://xval.codeplex.com)ASP.NET MVC Validation Library (http://aspmvcvalidation.codeplex.com/) ASP.NET MVC 2.0 solves this nicelyClient-side and server-side validationProvider for Data Annotations on server-sideAdapters jQuery and MS AJAX on client-side
  • 37. MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
  • 39. Model TemplatesASP.NET can render model based metadata provided by developersBuilt-in templates for data typesBuilt-in provider for Data AnnotationsData Annotations attributesDisplayName, HiddenInput, DataType, ReadOnly, ScaffoldColumn, DisplayFormat, and UIHint
  • 42. Custom TemplatesMVC is shipped with built-in templatesCan override templates easily
  • 44. MVC 2.0Separation of ConcernsModel-based ValidationModel RenderingScalability
  • 45. Asynchronous ControllerNo blocking-thread during IO/network-bound operation => improved throughputSource: http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
  • 48. OverviewBuilt-in page, entity, field and filter templatesEasy to customize or add new templatesDeclarative validation and renderingIntegrated with ASP.NET Web Forms and MVC applications
  • 51. ASP.NET Web Forms 4.0URL Routinghttp://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspxClient IDshttp://weblogs.asp.net/scottgu/archive/2010/03/30/cleaner-html-markup-with-asp-net-4-web-forms-client-ids-vs-2010-and-net-4-0-series.aspxChart Control http://www.4guysfromrolla.com/articles/072209-1.aspxSEO Improvementshttp://weblogs.asp.net/scottgu/archive/2010/01/05/asp-net-4-seo-improvements-vs-2010-and-net-4-0-series.aspx
  • 52. ASP.NET AJAX 4.0Libraries & source code for Ajax Libraryhttp://ajax.codeplex.comTutorials & sample apps for Ajax Libraryhttp://www.asp.net/ajaxlibraryMicrosoft Ajax CDNhttp://www.asp.net/ajaxLibrary/cdn.ashxMicrosoft Ajax Minifier 4.0http://aspnet.codeplex.com/releases/view/40584
  • 53. ASP.NET MVC 2.0Model validationhttp://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspxModel Templateshttp://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.htmlStrongly-typed Helpershttp://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspxAreashttp://msdn.microsoft.com/en-us/library/ee671793%28VS.100%29.aspxAsynchronous Controllerhttp://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
  • 54. ASP.NET Dynamic DataDynamic Data Presentation Layer Customizationhttp://msdn.microsoft.com/en-us/library/ee211433%28VS.100%29.aspxDynamic Data Schema Customizationhttp://msdn.microsoft.com/en-us/library/ee225428%28v=VS.100%29.aspx

Editor's Notes

  • #9: Global.asax -&gt; Default.aspx -&gt; Songs.aspx
  • #14: ClientID.aspxClientID_Predictable.aspx-&gt;AutoID -&gt; Static -&gt; Predictable
  • #20: Chart.aspx- Switch chart type: Column, Bar, Pie, LineChart_Programmatic.aspxMicrosoft Chart SamplesChart Types / Area Charts / 3D AreaChart Types / Advanced Financial Charts / StockAppearance / 3D PerspectiveInteractivity &amp; Ajax / AJAX / Real Time Chart
  • #26: ClientControls.aspx
  • #28: DataView.aspxDataViewRemote.aspx2_DataContext/1_WCF_SaveChanges.htm
  • #37: RegisterLogon
  • #42: Account/Register.ascxBlogEntry/Entry.ascxAccount/Show.ascx
  • #44: Account/Register.ascxBlogEntry/Entry.ascxAccount/Show.ascx
  • #47: Master.aspxTwitterControllerTweetBox
  • #50: Build from scratch and apply some customizations:1.namespace DynamicData.Models{ [MetadataType(typeof(TrackMetadata))] public partial class Track { } public class TrackMetadata { [StringLength(48)] public string Name { get; set; } [ScaffoldColumn(false)] public bool Bytes { get; set; } }}2.using System;using System.ComponentModel.DataAnnotations;namespace DynamicData.Models{ [MetadataType(typeof(InvoiceMetadata))] public partial class Invoice { } public class InvoiceMetadata { [DisplayFormat(DataFormatString = &quot;{0:yyyy-MM-dd}&quot;)] public DateTimeInvoiceDate { get; set; } }}3.List.aspx move to CustomPages/Tracks