SlideShare une entreprise Scribd logo
1  sur  54
New Features of ASP.NET 4.0 Buu Nguyen, MVP (ASP.NET) www.buunguyen.net/blog buunguyen@kms-technology.com Microsoft Confidential 1
Agenda ASP.NET Web Forms 4.0 ASP.NET AJAX 4.0 ASP.NET MVC 2.0 ASP.NET Dynamic Data
ASP.NET Web Forms 4.0
Web Forms 4.0 SEO Improvements Clean HTML Chart Control
Meta Tags Available in Page directive & Page object set out
Routing Tired of ugly URLs yet? Routing to rescue http://server/songs.aspx?genre=rock http://server/albums.aspx?year=2010&month=4&day=12 http://server/songs/rock http://server/albums/2010/4/12
Routing define use link
Meta Tags & Routing Demo
Web Forms 4.0 SEO Improvements Clean HTML Chart Control
Client IDs before 4.0 Microsoft Confidential 10 Not so CSS-friendly and JS-friendly!!!
Client IDs in ASP.NET 4.0 ClientIDMode gives developers control Can be specified at different levels machine.config and web.config Page Control
ClientIDMode
Client IDs Demo
Semantically Correct Markup Rendering version Menu control generates <ul>, <li> CheckBoxList’s and RadioButtonList’sRepeatLayout now has 4 values Table (old) Flow (old) OrderedList (new) UnorderedList (new) Many other small improvements
Web Forms 4.0 SEO Improvements Clean HTML Chart Control
Chart Control 35 chart types 3-D support Ajax support Data binding Statistical formulae Highly customizability Appearance & data serialization
Simple Static Chart
Dynamically Populated Chart
Chart Control Demo
ASP.NET AJAX 4.0
The ASP.NET AJAX Family
ASP.NET Ajax Library JavaScript library Server-side platform agnostic Include Ajax Control Toolkit (with client-side support) Tight integration with the “adopted” jQuery Support client-side template with DataView Provide script loader Support invoking web services Work seamlessly with ASP.NET services Released separately from ASP.NET and VS.NET Latest version: 0911 beta http://ajax.codeplex.com Microsoft Confidential 22
Using Client Controls All ACT controls now available at client-side Also known as “Client Controls” Also exposed as jQuery’s plugins Microsoft Confidential 23
Script Loader Manage scripts & dependencies Detect script duplication Load scripts in parallel Enable lazy script loading Microsoft Confidential 24
Client Controls & Script Loader Demo
DataView A JavaScript component allowing JSON data to be bound to an HTML template Support 2-way binding, master-detail, and conditional rendering Can retrieve data from local or services (e.g. ASMX, WCF, and WCF Data Services etc.) Microsoft Confidential 26
DataView Demo
ASP.NET MVC 2.0
Technology Stack ASP.NET Web Forms ASP.NET MVC ASP.NET Framework (Configuration, Security, Membership, Roles, Profiles, Routing, Caching, Session, Application State, Cookie, .aspx/.ascx/.asax/.master files etc. .NET Framework
MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
Areas Allow an MVC app to have multiple “areas” Like sub-projects although sharing 1 app Each area defines its routes Microsoft Confidential 31
Partial Action Render partial might cause coupling except for no-model partial view Partial action to rescue: invoke action which renders UI Microsoft Confidential 32
MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
Model Validation Model validation in MVC 1.0 is ad-hoc xVal (http://xval.codeplex.com) ASP.NET MVC Validation Library (http://aspmvcvalidation.codeplex.com/)       ASP.NET MVC 2.0 solves this nicely Client-side and server-side validation Provider for Data Annotations on server-side Adapters jQuery and MS AJAX on client-side
Applying Validation Model Action Method View
Model Validation Demo
MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
Strongly-Typed Helpers 1.0 Way 2.0 Way
Model Templates ASP.NET can render model based metadata provided by developers Built-in templates for data types Built-in provider for Data Annotations Data Annotations attributes DisplayName, HiddenInput, DataType, ReadOnly, ScaffoldColumn, DisplayFormat, and UIHint
Helper Methods Display Editor
Model Templates Demo
Custom Templates MVC is shipped with built-in templates Can override templates easily
Custom Templates Demo
MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
Asynchronous Controller No blocking-thread during IO/network-bound operation => improved throughput Source: http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
Asynchronous Controller Demo
Dynamic Data
Overview Built-in page, entity, field and filter templates Easy to customize or add new templates Declarative validation and rendering Integrated with ASP.NET Web Forms and MVC applications
Dynamic Data Demo
References 50
ASP.NET Web Forms 4.0 URL Routing http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx Client IDs http://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.aspx Chart Control  http://www.4guysfromrolla.com/articles/072209-1.aspx SEO Improvements http://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.0 Libraries & source code for Ajax Library http://ajax.codeplex.com Tutorials & sample apps for Ajax Library http://www.asp.net/ajaxlibrary Microsoft Ajax CDN http://www.asp.net/ajaxLibrary/cdn.ashx Microsoft Ajax Minifier 4.0 http://aspnet.codeplex.com/releases/view/40584
ASP.NET MVC 2.0 Model validation http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx Model Templates http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html Strongly-typed Helpers http://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspx Areas http://msdn.microsoft.com/en-us/library/ee671793%28VS.100%29.aspx Asynchronous Controller http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
ASP.NET Dynamic Data Dynamic Data Presentation Layer Customization http://msdn.microsoft.com/en-us/library/ee211433%28VS.100%29.aspx Dynamic Data Schema Customization http://msdn.microsoft.com/en-us/library/ee225428%28v=VS.100%29.aspx

Contenu connexe

Tendances

Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance TopicsAli Taki
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web applicationRahul Bansal
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraGajanand Bohra
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal 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 KamelHosam Kamel
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1Kumar 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 6Ido Flatow
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentationteach4uin
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauSpiffy
 
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.netPankaj Kushwaha
 

Tendances (20)

Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
Asp.net basic
Asp.net basicAsp.net basic
Asp.net basic
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohra
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
ASP.NET 4.0 Roadmap
ASP.NET 4.0 RoadmapASP.NET 4.0 Roadmap
ASP.NET 4.0 Roadmap
 
.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...
 
Asp net
Asp netAsp net
Asp net
 
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
 
ASP
ASPASP
ASP
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
 
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
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
 
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
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
 

Similaire à New Features of ASP.NET 4.0

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 rttLanvige 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.0Shiju 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 servicesAaron Jacobson
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamentalldcphuc
 
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 PresentationRasel 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 Presentationivpol
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Rishu 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 overviewSergey Seletsky
 
Edwin John.net
Edwin John.netEdwin John.net
Edwin John.netEdwin 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 AppsShahed Chowdhuri
 

Similaire à 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
 
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
 
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
 
MVC 4
MVC 4MVC 4
MVC 4
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010
 
Session 1
Session 1Session 1
Session 1
 
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
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Edwin John.net
Edwin John.netEdwin John.net
Edwin John.net
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 
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
 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
 

Plus de Buu Nguyen

On Becoming a Technical Lead
On Becoming a Technical LeadOn Becoming a Technical Lead
On Becoming a Technical LeadBuu Nguyen
 
C# 3.0 and 4.0
C# 3.0 and 4.0C# 3.0 and 4.0
C# 3.0 and 4.0Buu Nguyen
 
Stories about KMS Technology
Stories about KMS TechnologyStories about KMS Technology
Stories about KMS TechnologyBuu Nguyen
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Buu Nguyen
 
ASP.NET MVC 2.0
ASP.NET MVC 2.0ASP.NET MVC 2.0
ASP.NET MVC 2.0Buu Nguyen
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuu 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.0Buu Nguyen
 

Plus de Buu Nguyen (11)

On Becoming a Technical Lead
On Becoming a Technical LeadOn Becoming a Technical Lead
On Becoming a Technical Lead
 
C# 3.0 and 4.0
C# 3.0 and 4.0C# 3.0 and 4.0
C# 3.0 and 4.0
 
Stories about KMS Technology
Stories about KMS TechnologyStories about KMS Technology
Stories about KMS Technology
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 
HTML5 in IE9
HTML5 in IE9HTML5 in IE9
HTML5 in IE9
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0
 
ASP.NET MVC 2.0
ASP.NET MVC 2.0ASP.NET MVC 2.0
ASP.NET MVC 2.0
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web Applications
 
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
 
Combres
CombresCombres
Combres
 
Fasterflect
FasterflectFasterflect
Fasterflect
 

Dernier

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Dernier (20)

E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

New Features of ASP.NET 4.0

  • 1. New Features of ASP.NET 4.0 Buu Nguyen, MVP (ASP.NET) www.buunguyen.net/blog buunguyen@kms-technology.com Microsoft Confidential 1
  • 2. Agenda ASP.NET Web Forms 4.0 ASP.NET AJAX 4.0 ASP.NET MVC 2.0 ASP.NET Dynamic Data
  • 4. Web Forms 4.0 SEO Improvements Clean HTML Chart Control
  • 5. Meta Tags Available in Page directive & Page object set out
  • 6. Routing Tired of ugly URLs yet? Routing to rescue http://server/songs.aspx?genre=rock http://server/albums.aspx?year=2010&month=4&day=12 http://server/songs/rock http://server/albums/2010/4/12
  • 8. Meta Tags & Routing Demo
  • 9. Web Forms 4.0 SEO Improvements Clean HTML Chart Control
  • 10. Client IDs before 4.0 Microsoft Confidential 10 Not so CSS-friendly and JS-friendly!!!
  • 11. Client IDs in ASP.NET 4.0 ClientIDMode gives developers control Can be specified at different levels machine.config and web.config Page Control
  • 14. Semantically Correct Markup Rendering version Menu control generates <ul>, <li> CheckBoxList’s and RadioButtonList’sRepeatLayout now has 4 values Table (old) Flow (old) OrderedList (new) UnorderedList (new) Many other small improvements
  • 15. Web Forms 4.0 SEO Improvements Clean HTML Chart Control
  • 16. Chart Control 35 chart types 3-D support Ajax support Data binding Statistical formulae Highly customizability Appearance & data serialization
  • 22. ASP.NET Ajax Library JavaScript library Server-side platform agnostic Include Ajax Control Toolkit (with client-side support) Tight integration with the “adopted” jQuery Support client-side template with DataView Provide script loader Support invoking web services Work seamlessly with ASP.NET services Released separately from ASP.NET and VS.NET Latest version: 0911 beta http://ajax.codeplex.com Microsoft Confidential 22
  • 23. Using Client Controls All ACT controls now available at client-side Also known as “Client Controls” Also exposed as jQuery’s plugins Microsoft Confidential 23
  • 24. Script Loader Manage scripts & dependencies Detect script duplication Load scripts in parallel Enable lazy script loading Microsoft Confidential 24
  • 25. Client Controls & Script Loader Demo
  • 26. DataView A JavaScript component allowing JSON data to be bound to an HTML template Support 2-way binding, master-detail, and conditional rendering Can retrieve data from local or services (e.g. ASMX, WCF, and WCF Data Services etc.) Microsoft Confidential 26
  • 29. Technology Stack ASP.NET Web Forms ASP.NET MVC ASP.NET Framework (Configuration, Security, Membership, Roles, Profiles, Routing, Caching, Session, Application State, Cookie, .aspx/.ascx/.asax/.master files etc. .NET Framework
  • 30. MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
  • 31. Areas Allow an MVC app to have multiple “areas” Like sub-projects although sharing 1 app Each area defines its routes Microsoft Confidential 31
  • 32. Partial Action Render partial might cause coupling except for no-model partial view Partial action to rescue: invoke action which renders UI Microsoft Confidential 32
  • 33. MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
  • 34. Model Validation Model validation in MVC 1.0 is ad-hoc xVal (http://xval.codeplex.com) ASP.NET MVC Validation Library (http://aspmvcvalidation.codeplex.com/) ASP.NET MVC 2.0 solves this nicely Client-side and server-side validation Provider for Data Annotations on server-side Adapters jQuery and MS AJAX on client-side
  • 35. Applying Validation Model Action Method View
  • 37. MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
  • 39. Model Templates ASP.NET can render model based metadata provided by developers Built-in templates for data types Built-in provider for Data Annotations Data Annotations attributes DisplayName, HiddenInput, DataType, ReadOnly, ScaffoldColumn, DisplayFormat, and UIHint
  • 42. Custom Templates MVC is shipped with built-in templates Can override templates easily
  • 44. MVC 2.0 Separation of Concerns Model-based Validation Model Rendering Scalability
  • 45. Asynchronous Controller No blocking-thread during IO/network-bound operation => improved throughput Source: http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
  • 48. Overview Built-in page, entity, field and filter templates Easy to customize or add new templates Declarative validation and rendering Integrated with ASP.NET Web Forms and MVC applications
  • 51. ASP.NET Web Forms 4.0 URL Routing http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx Client IDs http://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.aspx Chart Control http://www.4guysfromrolla.com/articles/072209-1.aspx SEO Improvements http://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.0 Libraries & source code for Ajax Library http://ajax.codeplex.com Tutorials & sample apps for Ajax Library http://www.asp.net/ajaxlibrary Microsoft Ajax CDN http://www.asp.net/ajaxLibrary/cdn.ashx Microsoft Ajax Minifier 4.0 http://aspnet.codeplex.com/releases/view/40584
  • 53. ASP.NET MVC 2.0 Model validation http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx Model Templates http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html Strongly-typed Helpers http://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspx Areas http://msdn.microsoft.com/en-us/library/ee671793%28VS.100%29.aspx Asynchronous Controller http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
  • 54. ASP.NET Dynamic Data Dynamic Data Presentation Layer Customization http://msdn.microsoft.com/en-us/library/ee211433%28VS.100%29.aspx Dynamic Data Schema Customization http://msdn.microsoft.com/en-us/library/ee225428%28v=VS.100%29.aspx

Notes de l'éditeur

  1. Global.asax -&gt; Default.aspx -&gt; Songs.aspx
  2. ClientID.aspxClientID_Predictable.aspx-&gt;AutoID -&gt; Static -&gt; Predictable
  3. 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
  4. ClientControls.aspx
  5. DataView.aspxDataViewRemote.aspx2_DataContext/1_WCF_SaveChanges.htm
  6. RegisterLogon
  7. Account/Register.ascxBlogEntry/Entry.ascxAccount/Show.ascx
  8. Account/Register.ascxBlogEntry/Entry.ascxAccount/Show.ascx
  9. Master.aspxTwitterControllerTweetBox
  10. 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