SlideShare a Scribd company logo
ASP.NET 4.0 In-Depth
By
In case you are having issues regarding audio and video please contact at
questpond@questpond.com, these training are available as recordings later ,
please do not disturb during training.
• Please Mute your mic and mobile during training.
• Ask your question using the Q and A tab in live meeting.
• Speak one at a time so that every one is benefited.
This training session is 
• sponsored by www.itfunda.com 
• supported and organized by www.questpond.com
Abhijit Jana & Abhishek Sur
In Support with
DotNetFunda.Com
Abhijit Jana & Abhishek Sur
Agenda
ASP.NET 4.0ASP.NET 4.0
• Web form Routing
• Meta description
• Permanent
Redirection
• Web form Routing
• Meta description
• Permanent
Redirection
Search Engine OptimizationSearch Engine Optimization
• Controlling View State
• Compression Enabled
Session
• Output Caching
Extensibility
• Controlling View State
• Compression Enabled
Session
• Output Caching
Extensibility
State ManagementState Management
• Control over client id
• Html encoded code
expressions
• CSS improvements
• Control over client id
• Html encoded code
expressions
• CSS improvements
Client SideClient Side
• Smaller Web.config
• Performance monitoring
for individual applicatiion
• AutoStart application
• increase url character
• Web.Config
Transformation
• Smaller Web.config
• Performance monitoring
for individual applicatiion
• AutoStart application
• increase url character
• Web.Config
Transformation
DeploymentDeployment
• Enhancement in Listview
control
• RadioButtonList and
CheckBoxList
• CSS Friendly Menu Control
• Enhancement in Listview
control
• RadioButtonList and
CheckBoxList
• CSS Friendly Menu Control
Server Control
Enhancements
Server Control
Enhancements
Overview of
Dynamic Data
Overview of
Dynamic Data
Visual Studio 2010 Enhancement for ASP.NET 4.0Visual Studio 2010 Enhancement for ASP.NET 4.0
Multi targetingMulti targeting
Publish for Web AppPublish for Web App Code SnippetsCode Snippets
Diff. Integrated Web ServerDiff. Integrated Web Server
Project TemplatesProject Templates JavaScript intellesenceJavaScript intellesence
Session Flow
1. Discussion of
current topic
2. Different
Improvement
areas
3. Quick Tips
1. Discussion of
current topic
2. Different
Improvement
areas
3. Quick Tips
Demo of all the
discussed Topics
Demo of all the
discussed Topics
Quick Recap on
what we have
discussed till now
Quick Recap on
what we have
discussed till now
Moving forwards
to next session
Moving forwards
to next session
Questions
And
Answers
Questions
And
Answers
Visual Studio 2010 Enhancement for ASP.NET 4.0
Multi targeting
Different Version of Integrated Web Server
Code Snippets for Web designer
Java script intellesence
Project Templates
Publish a web application
AbhijitJana.net & AbhishekSur.com
Multi targeting
Key Notes :
 Multi-Targeting Support in VS 2008
 Changes in Multi-Targeting in 2010
 Convert ASP.NET application from
one framework to another
framework
Different Version of Integrated Web Server
Key Notes
 Visual studio used Integrated
ASP.NET engine to run ASP.NET
Application from IDE
 CLR version (CLR 2 and CLR 4) you
have separate built-in ASP.NET
Engine
 Side by Side Execution of different
framework
Code Snippets for Web designer
Key Notes
 Code snippets for
– ASP.NET
– HTML
– ASP.NET AJAX
– XML
– ASP.NET MVC
 Use Surround With Snippets
 Custom Code Snippet
Java script intellesence
Key Notes
 Improvement like Code snippets in
ASP.NET
 Recognize dynamically generated
objects
Project Templates
Key Notes
 Addition of new templates and
modification of existing templates
– ASP.NET Empty Web Application
– ASP.NET Web Application
Publish a web application
Key Notes
• Many New features added
for Web Site deployment in
VS 2010
• One-click publishing
• Web packaging
• Web.config transformation
• Database deployment
DEMO
Visual Studio 2010 Enhancement for ASP.NET 4.0
QUICK RECAP
Visual Studio 2010 Enhancement for ASP.NET 4.0
QUESTIONS & ANSWERS
Visual Studio 2010 Enhancement for ASP.NET 4.0
Server Control Enhancement
RadioButtonList and Checkbox List
Enhancement in List view control
CSS Friendly Menu Control
RadioButtonList and Checkbox List
Key Notes
 Checkbox list and radiobutton list both
having “RepeatLayout “ properties
 ASP.NET 3.5 supports “Flow” and “Table”
layout
 ASP.NET 4.0 added two new layout
“Orderedlist” “UnorderedList
 These layout has only “Vertical”
RepeatDirection for new layouts.
CSS Friendly Menu Control
Key Notes
 ASP.NET Menu Control till Version 3.5
rendered as TABLE, TR, TD
 New Addition of “Rendering Mode”
properties
 Three Type of Render
 Default
 List
 Table
Enhancement in List view control
Key Notes
 Enhancement for layouts rendering
 ASP.NET 3.5 needs a place holder
inside LayoutTemplate
 ASP.NET 4.0 Listview doesn’t need
any LayoutTemplate
AbhijitJana.net & AbhishekSur.com
DEMO
Server Control Enhancement
QUICK RECAP
Server Control Enhancement
QUESTIONS & ANSWERS
Server Control Enhancement
Search Engine Optimization
Meta Description
Web Form Routing
Permanent Redirection
Meta Description
Key Notes
 Search Engine looks for Meta tag of our
web page to get the details of page
contents
 Two New Properties for Page Class
– MetaDescription
– MetaKeywords
 These can be defined from both code
behind and from aspx page
 Makes it easier to work with these than
defining with HtmlMeta.
Permanent Redirection
Key Notes
 Removes the problem of Temporary
redirection (302) using Response.Redirect
and ensures Search engine updates its
database about this redirection using
Response.RedirectParmanent(301).
 As the round trips will be minimized due
to ParmanentRedirection, Page rank can
be increased in Search Engines.
Web Form Routing
Key Notes
 ASP.NET MVC 2 introduces Routing features
in .NET Framework 3.5 SP1.
 Route Module is been added to
System.Web.dll so it is available readily to
any application.
 ASP.NET 4.0 already implemented of
IRouteHandler called PageRouteHandler, so
we do not need to implement the same.
 You need to register routes in global.asax or
any custom module. Once you register, the
routing will be available instantly.
 RouteData is available from any page to
access RouteTable.
 Response.RedirectToRoute allows to use
Route redirection from one page to another
by calling either routeName of routeValues.
 Support for Expression to generate RouteUrl
DEMO
Search Engine Optimization
QUICK RECAP
Search Engine Optimization
QUESTIONS & ANSWERS
Search Engine Optimization
State Management Improvement
Compression Enabled Session
Better Control in View State
Extensibility in Output Caching
Compression Enabled Session
Key Notes
 Session Mode
– In Process
– Out Process
 compressionEnabled attributes for
Session State
 compress / Decompress the session data
during serialization / deserialzation of
session data
 System.IO.Compression.GZStream
Better Control in View State
Key Notes
 “EnableViewState” Properties for both
Page Level and Server Control
 Page Level view state control treat as
highest priorities.
 ASP.NET 4.0 Introduced ViewStateMode
– Enabled
– Disabled
– Inherit
http://abhijitjana.net/2010/05/16/viewstate-control-in-asp-net-4-0/
Output Cache ProviderOutput Cache Provider
Extensibility in Output Caching
Key Notes
 Till ASP.NET 3.5 System.Web.dll assembly
for caching
 ASP.NET 4.0 introduced
System.Runtime.Caching.dll assembly for
caching
 Supports Custom Cache Implementation
 In memory Cache Implementation
 System.Runtime.Caching.MemoryCache
 Both object caching and ASP.NET output
caching will be pluggable
 Using Sytem.Cache namespaces
Disk
based
Disk
based
In-
memory
In-
memory
AzureAzure
DEMO
State Management Improvement
QUICK RECAP
State Management Improvement
QUESTIONS & ANSWERS
State Management Improvement
Deployment
Smaller Web.config
Web.config Transformation
Performance Monitoring
Auto Start Application
Increase URL Length
Web Packaging & Publishing
Smaller Web.config
Key Notes
 Grown considerably over time as ASP.NET
adds up features from 2.0.
 In 4.0 major portion of Web.config is
moved to machine.config and all the
applications automatically inherits them.
 Which means smaller web.config just
shown in the figure.
Performance Monitoring
Key Notes
 Performance monitoring of a single
application running under one worker
process is difficult.
 ASP.NET 4.0 allows you to configure
ResourceMonitoring enabled from
aspnet.config (Not web.config).
 Managed Processor time and Managed
Memory used can be checked from
application performance option.
Auto Start Application
Key Notes
 Huge load of initialization weak up asp.net
application for first web call.
 IIS 7.5 introduces Application warm up
module to ensure your application always
keep running.
 You can use applicationhost.config to
configure your IIS worker process to keep
warm up module in action
 You can have managed hooks to the
system to write your custom code during
initialization using
IProcessHostPreloadClient interface which
will be called automatically before any
HTTP request is processed.
Web.config Transformation
Key Notes
 Separate Web.config files for Debug,
release, staging etc.
 Xdt:Transform and xdt:Locator lets you to
match certain portion of your config and
allow automatic transformation of
web.config.
 Locator can be specified using XPath,
Match, Condition allow you to find in
config easily.
 Transform includes Replace, Insert,
InsertBefore, InsertAfter, Remove,
RemoveAll etc.
Increases URL length
Key Notes
 Previous static length of url to 260 characters (based on
NTFS file path limit) can be configured from application.
 You can change the maximum size of URL using
HttpRuntime configuration.
 requestPathInvalidChars lets you to prevent characters
in URL.
 Support for URL in different browsers:
1. 2083 characters for IE with less than 2048 characters
in path portion of the url.
2. More than 100,000 characters are supported for
Firefox but address bar can only display upto 65,536
characters.
3. 80,000 for Safari.
4. 190,000 characters for Opera
Still it is not recommended to use more than 2000
characters in URL
WebPackaging & Publishing
Key Notes
 VS 2010 allows you to publish your application with a
single click.
 MSDeploy Publising, FTP, File System, FrontPage Server
Extensions.
 Packaging allows you to package your web application
into a compressed archive, which you later may use to
deploy the application.
 Allows you to deploy Files, Settings, Configuration, GAC,
etc.
 Sql Server deployment allows you to include SQL Scripts
with your package.
DEMO
Deployment
QUICK RECAP
Deployment
QUESTIONS & ANSWERS
Deployment
Client Side Improvement
Control over Client ID
HTML Encoded Code Expression
CSS Improvements
AbhijitJana.net & AbhishekSur.com
Control over Client ID
Key Notes
 All Server side control rendered as HTML
Control and need a ID to identify.
 This ID used to be auto generated
 New property introduced “ClientIDMode”
 Control.ClientIdMode
– AutoID
– Static
– Predictable
– Inherit
HTML Encoded Code Expression
Key Notes
 Till ASP.NET 3.5 we have used <
%=expression%>
– Causes XSS
 ASP.NET 4 introduces the following new
syntax for code expressions.
– <%: expression %>
– <%=
HttpUtility.HtmlEncode(expre
ssion) %>

<%: expression %><%: expression %>
<%= HttpUtility.HtmlEncode(expression) %><%= HttpUtility.HtmlEncode(expression) %>
CSS Improvements
Key Notes
 VS 2010 has been updated to improve CSS
2.1 Standards.
 ASP.NET 4 has been to help render HTML
that is compliant with the latest HTML
standards
 Use of
controlRenderingCompatibilityVersion
 Default set to 4.0 for ASP.NET 4.0
applications
 We can use 3.5 to support legacy markup
DEMO
Client Side Improvements
QUICK RECAP
Client Side Improvements
QUESTIONS & ANSWERS
Client Side Improvements
Overview of Dynamic Data
 Creates UI automatically that reacts on
data.
 Pages are created dynamically based on
Data configured for the web site.
 Linked pages holds relationship between
data.
 Support for both Linq to Sql and ADO.NET
Data Entities.
Open Discussion
AbhijitJana.net & AbhishekSur.com
THANK YOU !
ASP.NET 4.0
Presenter : Abhijit Jana (http://abhijitjana.net)
Abhishek Sur ( http://abhisheksur.com)

More Related Content

PDF
User and group security migration
PDF
Oracle apex-hands-on-guide lab#1
PPT
PDF
37727897 Oaf Basics
PDF
websphere commerce server admin configuration
PDF
Obiee10 g to 11g upgrade
PPT
Oaf development-guide
PDF
AD201 - IBM Domino Application Development Today And Tomorrow
User and group security migration
Oracle apex-hands-on-guide lab#1
37727897 Oaf Basics
websphere commerce server admin configuration
Obiee10 g to 11g upgrade
Oaf development-guide
AD201 - IBM Domino Application Development Today And Tomorrow

What's hot (20)

DOC
Oa Framework Tutorial
PPT
Websphere Application Server v7
PPT
WebSphere Community Edition
PDF
Customizing sales force-interface
PPTX
Websphere Application Server V8.5
PDF
Developing for SP2013
DOCX
IBM Websphere concepts
DOCX
IBM websphere application server types of profiles
PDF
Magento And Zend Server Benchmarks
PPTX
TEC2010 SharePoint 2010 Upgrade
PPTX
Jan Egil Ring - Get started with windows power shell desired state configuration
PDF
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
PPT
Open Mic IBM connections and IBM Verse on premise integration
PPTX
SharePoint 2010 Upgrade Drill Down
PDF
Open Mic - IBM Sametime Proxy Clustering
PDF
Customizing oro crm webinar
PPT
ibm websphere admin training | websphere admin course | ibm websphere adminis...
PPT
SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Ole...
PDF
Microsoft MCSD 70-499 it-exams.fr
PPT
May 19-20 l Washington, DC l Omni Shoreham
Oa Framework Tutorial
Websphere Application Server v7
WebSphere Community Edition
Customizing sales force-interface
Websphere Application Server V8.5
Developing for SP2013
IBM Websphere concepts
IBM websphere application server types of profiles
Magento And Zend Server Benchmarks
TEC2010 SharePoint 2010 Upgrade
Jan Egil Ring - Get started with windows power shell desired state configuration
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
Open Mic IBM connections and IBM Verse on premise integration
SharePoint 2010 Upgrade Drill Down
Open Mic - IBM Sametime Proxy Clustering
Customizing oro crm webinar
ibm websphere admin training | websphere admin course | ibm websphere adminis...
SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Ole...
Microsoft MCSD 70-499 it-exams.fr
May 19-20 l Washington, DC l Omni Shoreham
Ad

Viewers also liked (20)

PPTX
Coaches Advisory Committee Report
ODP
La intervencion clinica perspectiva general
PPTX
Hidden Facts of .NET Language Gems
PPTX
La entrevista en psicologia clinica b
PPTX
SQL Server2012 Enhancements
PPS
Ao thuat
PDF
Clinica de la sugestion, clinica del significante luz mery zapata[1]
PPT
Entity framework 4.0
DOC
Bam cap mang
PPTX
Managing A Youth Track Club
PDF
Intervencion clinica perspectiva general
PPTX
Primer nivel, habilidades basicas
PPT
Asynchronous handlers in asp.net
PPTX
The Magic of WPF & MVVM
PPTX
Clinic for jump coaches proposal
PDF
Ame implementation-guide
PPTX
Visual Studio 2012: what's new!!!
PPTX
Windows Presentation Foundation
PPTX
Visual studio 2012 - What's in it for me?
PPTX
What's New In C# 5.0 - Rumos InsideOut
Coaches Advisory Committee Report
La intervencion clinica perspectiva general
Hidden Facts of .NET Language Gems
La entrevista en psicologia clinica b
SQL Server2012 Enhancements
Ao thuat
Clinica de la sugestion, clinica del significante luz mery zapata[1]
Entity framework 4.0
Bam cap mang
Managing A Youth Track Club
Intervencion clinica perspectiva general
Primer nivel, habilidades basicas
Asynchronous handlers in asp.net
The Magic of WPF & MVVM
Clinic for jump coaches proposal
Ame implementation-guide
Visual Studio 2012: what's new!!!
Windows Presentation Foundation
Visual studio 2012 - What's in it for me?
What's New In C# 5.0 - Rumos InsideOut
Ad

Similar to ASP.NET 4.0 Demo (20)

PPT
Aspnet40 session final-1
PPT
Asp dot net long
PPT
ASP_NET_Architecture_Interfgfgfgnals1.ppt
PPT
ASP.NET OVERVIEW
PPTX
Introduction to ASP.NET
PPT
IIS 6.0 and asp.net
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
PPT
ASPNET Roadmap
PPTX
Usability AJAX and other ASP.NET Features
PPTX
Walther Aspnet4
PDF
Asp dot net final (2)
ODP
Sun Web Server Brief
PPT
Asp dot net final (1)
PPT
Asp dot net final (1)
PPT
Asp dot net final (1)
PPTX
Application Generation
PPT
Migration from ASP to ASP.NET
PPT
Was 5.1 To 6.1 Updated
PPT
New Features Of ASP.Net 4 0
Aspnet40 session final-1
Asp dot net long
ASP_NET_Architecture_Interfgfgfgnals1.ppt
ASP.NET OVERVIEW
Introduction to ASP.NET
IIS 6.0 and asp.net
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
ASPNET Roadmap
Usability AJAX and other ASP.NET Features
Walther Aspnet4
Asp dot net final (2)
Sun Web Server Brief
Asp dot net final (1)
Asp dot net final (1)
Asp dot net final (1)
Application Generation
Migration from ASP to ASP.NET
Was 5.1 To 6.1 Updated
New Features Of ASP.Net 4 0

More from Abhishek Sur (20)

PPTX
Azure servicefabric
PPT
Building a bot with an intent
PPTX
Code review
PPTX
C# 7.0 Hacks and Features
PPTX
Angular JS, A dive to concepts
PPTX
Stream Analytics Service in Azure
PPTX
Designing azure compute and storage infrastructure
PPTX
Working with Azure Resource Manager Templates
PPTX
F12 debugging in Ms edge
PPTX
Mobile Services for Windows Azure
PPTX
Service bus to build Bridges
PPTX
Windows azure pack overview
PPTX
AMicrosoft azure hyper v recovery manager overview
PPTX
Di api di server b1 ws
PPTX
Integrating cortana with wp8 app
PPTX
Asp.net performance
PPTX
Introduction to XAML and its features
PPTX
Dev days Visual Studio 2012 Enhancements
PPTX
ASP.NET 4.5 webforms
PPTX
Why do I Love C#?
Azure servicefabric
Building a bot with an intent
Code review
C# 7.0 Hacks and Features
Angular JS, A dive to concepts
Stream Analytics Service in Azure
Designing azure compute and storage infrastructure
Working with Azure Resource Manager Templates
F12 debugging in Ms edge
Mobile Services for Windows Azure
Service bus to build Bridges
Windows azure pack overview
AMicrosoft azure hyper v recovery manager overview
Di api di server b1 ws
Integrating cortana with wp8 app
Asp.net performance
Introduction to XAML and its features
Dev days Visual Studio 2012 Enhancements
ASP.NET 4.5 webforms
Why do I Love C#?

Recently uploaded (20)

PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced IT Governance
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Newfamily of error-correcting codes based on genetic algorithms
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
KodekX | Application Modernization Development
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
REPORT: Heating appliances market in Poland 2024
PDF
Review of recent advances in non-invasive hemoglobin estimation
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Event Presentation Google Cloud Next Extended 2025
madgavkar20181017ppt McKinsey Presentation.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced IT Governance
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Newfamily of error-correcting codes based on genetic algorithms
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
Transforming Manufacturing operations through Intelligent Integrations
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Sensors and Actuators in IoT Systems using pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
KodekX | Application Modernization Development
GamePlan Trading System Review: Professional Trader's Honest Take
REPORT: Heating appliances market in Poland 2024
Review of recent advances in non-invasive hemoglobin estimation

ASP.NET 4.0 Demo

  • 1. ASP.NET 4.0 In-Depth By In case you are having issues regarding audio and video please contact at [email protected], these training are available as recordings later , please do not disturb during training. • Please Mute your mic and mobile during training. • Ask your question using the Q and A tab in live meeting. • Speak one at a time so that every one is benefited. This training session is  • sponsored by www.itfunda.com  • supported and organized by www.questpond.com Abhijit Jana & Abhishek Sur In Support with DotNetFunda.Com
  • 2. Abhijit Jana & Abhishek Sur
  • 3. Agenda ASP.NET 4.0ASP.NET 4.0 • Web form Routing • Meta description • Permanent Redirection • Web form Routing • Meta description • Permanent Redirection Search Engine OptimizationSearch Engine Optimization • Controlling View State • Compression Enabled Session • Output Caching Extensibility • Controlling View State • Compression Enabled Session • Output Caching Extensibility State ManagementState Management • Control over client id • Html encoded code expressions • CSS improvements • Control over client id • Html encoded code expressions • CSS improvements Client SideClient Side • Smaller Web.config • Performance monitoring for individual applicatiion • AutoStart application • increase url character • Web.Config Transformation • Smaller Web.config • Performance monitoring for individual applicatiion • AutoStart application • increase url character • Web.Config Transformation DeploymentDeployment • Enhancement in Listview control • RadioButtonList and CheckBoxList • CSS Friendly Menu Control • Enhancement in Listview control • RadioButtonList and CheckBoxList • CSS Friendly Menu Control Server Control Enhancements Server Control Enhancements Overview of Dynamic Data Overview of Dynamic Data Visual Studio 2010 Enhancement for ASP.NET 4.0Visual Studio 2010 Enhancement for ASP.NET 4.0 Multi targetingMulti targeting Publish for Web AppPublish for Web App Code SnippetsCode Snippets Diff. Integrated Web ServerDiff. Integrated Web Server Project TemplatesProject Templates JavaScript intellesenceJavaScript intellesence
  • 4. Session Flow 1. Discussion of current topic 2. Different Improvement areas 3. Quick Tips 1. Discussion of current topic 2. Different Improvement areas 3. Quick Tips Demo of all the discussed Topics Demo of all the discussed Topics Quick Recap on what we have discussed till now Quick Recap on what we have discussed till now Moving forwards to next session Moving forwards to next session Questions And Answers Questions And Answers
  • 5. Visual Studio 2010 Enhancement for ASP.NET 4.0 Multi targeting Different Version of Integrated Web Server Code Snippets for Web designer Java script intellesence Project Templates Publish a web application AbhijitJana.net & AbhishekSur.com
  • 6. Multi targeting Key Notes :  Multi-Targeting Support in VS 2008  Changes in Multi-Targeting in 2010  Convert ASP.NET application from one framework to another framework
  • 7. Different Version of Integrated Web Server Key Notes  Visual studio used Integrated ASP.NET engine to run ASP.NET Application from IDE  CLR version (CLR 2 and CLR 4) you have separate built-in ASP.NET Engine  Side by Side Execution of different framework
  • 8. Code Snippets for Web designer Key Notes  Code snippets for – ASP.NET – HTML – ASP.NET AJAX – XML – ASP.NET MVC  Use Surround With Snippets  Custom Code Snippet
  • 9. Java script intellesence Key Notes  Improvement like Code snippets in ASP.NET  Recognize dynamically generated objects
  • 10. Project Templates Key Notes  Addition of new templates and modification of existing templates – ASP.NET Empty Web Application – ASP.NET Web Application
  • 11. Publish a web application Key Notes • Many New features added for Web Site deployment in VS 2010 • One-click publishing • Web packaging • Web.config transformation • Database deployment
  • 12. DEMO Visual Studio 2010 Enhancement for ASP.NET 4.0
  • 13. QUICK RECAP Visual Studio 2010 Enhancement for ASP.NET 4.0
  • 14. QUESTIONS & ANSWERS Visual Studio 2010 Enhancement for ASP.NET 4.0
  • 15. Server Control Enhancement RadioButtonList and Checkbox List Enhancement in List view control CSS Friendly Menu Control
  • 16. RadioButtonList and Checkbox List Key Notes  Checkbox list and radiobutton list both having “RepeatLayout “ properties  ASP.NET 3.5 supports “Flow” and “Table” layout  ASP.NET 4.0 added two new layout “Orderedlist” “UnorderedList  These layout has only “Vertical” RepeatDirection for new layouts.
  • 17. CSS Friendly Menu Control Key Notes  ASP.NET Menu Control till Version 3.5 rendered as TABLE, TR, TD  New Addition of “Rendering Mode” properties  Three Type of Render  Default  List  Table
  • 18. Enhancement in List view control Key Notes  Enhancement for layouts rendering  ASP.NET 3.5 needs a place holder inside LayoutTemplate  ASP.NET 4.0 Listview doesn’t need any LayoutTemplate AbhijitJana.net & AbhishekSur.com
  • 21. QUESTIONS & ANSWERS Server Control Enhancement
  • 22. Search Engine Optimization Meta Description Web Form Routing Permanent Redirection
  • 23. Meta Description Key Notes  Search Engine looks for Meta tag of our web page to get the details of page contents  Two New Properties for Page Class – MetaDescription – MetaKeywords  These can be defined from both code behind and from aspx page  Makes it easier to work with these than defining with HtmlMeta.
  • 24. Permanent Redirection Key Notes  Removes the problem of Temporary redirection (302) using Response.Redirect and ensures Search engine updates its database about this redirection using Response.RedirectParmanent(301).  As the round trips will be minimized due to ParmanentRedirection, Page rank can be increased in Search Engines.
  • 25. Web Form Routing Key Notes  ASP.NET MVC 2 introduces Routing features in .NET Framework 3.5 SP1.  Route Module is been added to System.Web.dll so it is available readily to any application.  ASP.NET 4.0 already implemented of IRouteHandler called PageRouteHandler, so we do not need to implement the same.  You need to register routes in global.asax or any custom module. Once you register, the routing will be available instantly.  RouteData is available from any page to access RouteTable.  Response.RedirectToRoute allows to use Route redirection from one page to another by calling either routeName of routeValues.  Support for Expression to generate RouteUrl
  • 28. QUESTIONS & ANSWERS Search Engine Optimization
  • 29. State Management Improvement Compression Enabled Session Better Control in View State Extensibility in Output Caching
  • 30. Compression Enabled Session Key Notes  Session Mode – In Process – Out Process  compressionEnabled attributes for Session State  compress / Decompress the session data during serialization / deserialzation of session data  System.IO.Compression.GZStream
  • 31. Better Control in View State Key Notes  “EnableViewState” Properties for both Page Level and Server Control  Page Level view state control treat as highest priorities.  ASP.NET 4.0 Introduced ViewStateMode – Enabled – Disabled – Inherit http://abhijitjana.net/2010/05/16/viewstate-control-in-asp-net-4-0/
  • 32. Output Cache ProviderOutput Cache Provider Extensibility in Output Caching Key Notes  Till ASP.NET 3.5 System.Web.dll assembly for caching  ASP.NET 4.0 introduced System.Runtime.Caching.dll assembly for caching  Supports Custom Cache Implementation  In memory Cache Implementation  System.Runtime.Caching.MemoryCache  Both object caching and ASP.NET output caching will be pluggable  Using Sytem.Cache namespaces Disk based Disk based In- memory In- memory AzureAzure
  • 35. QUESTIONS & ANSWERS State Management Improvement
  • 36. Deployment Smaller Web.config Web.config Transformation Performance Monitoring Auto Start Application Increase URL Length Web Packaging & Publishing
  • 37. Smaller Web.config Key Notes  Grown considerably over time as ASP.NET adds up features from 2.0.  In 4.0 major portion of Web.config is moved to machine.config and all the applications automatically inherits them.  Which means smaller web.config just shown in the figure.
  • 38. Performance Monitoring Key Notes  Performance monitoring of a single application running under one worker process is difficult.  ASP.NET 4.0 allows you to configure ResourceMonitoring enabled from aspnet.config (Not web.config).  Managed Processor time and Managed Memory used can be checked from application performance option.
  • 39. Auto Start Application Key Notes  Huge load of initialization weak up asp.net application for first web call.  IIS 7.5 introduces Application warm up module to ensure your application always keep running.  You can use applicationhost.config to configure your IIS worker process to keep warm up module in action  You can have managed hooks to the system to write your custom code during initialization using IProcessHostPreloadClient interface which will be called automatically before any HTTP request is processed.
  • 40. Web.config Transformation Key Notes  Separate Web.config files for Debug, release, staging etc.  Xdt:Transform and xdt:Locator lets you to match certain portion of your config and allow automatic transformation of web.config.  Locator can be specified using XPath, Match, Condition allow you to find in config easily.  Transform includes Replace, Insert, InsertBefore, InsertAfter, Remove, RemoveAll etc.
  • 41. Increases URL length Key Notes  Previous static length of url to 260 characters (based on NTFS file path limit) can be configured from application.  You can change the maximum size of URL using HttpRuntime configuration.  requestPathInvalidChars lets you to prevent characters in URL.  Support for URL in different browsers: 1. 2083 characters for IE with less than 2048 characters in path portion of the url. 2. More than 100,000 characters are supported for Firefox but address bar can only display upto 65,536 characters. 3. 80,000 for Safari. 4. 190,000 characters for Opera Still it is not recommended to use more than 2000 characters in URL
  • 42. WebPackaging & Publishing Key Notes  VS 2010 allows you to publish your application with a single click.  MSDeploy Publising, FTP, File System, FrontPage Server Extensions.  Packaging allows you to package your web application into a compressed archive, which you later may use to deploy the application.  Allows you to deploy Files, Settings, Configuration, GAC, etc.  Sql Server deployment allows you to include SQL Scripts with your package.
  • 46. Client Side Improvement Control over Client ID HTML Encoded Code Expression CSS Improvements AbhijitJana.net & AbhishekSur.com
  • 47. Control over Client ID Key Notes  All Server side control rendered as HTML Control and need a ID to identify.  This ID used to be auto generated  New property introduced “ClientIDMode”  Control.ClientIdMode – AutoID – Static – Predictable – Inherit
  • 48. HTML Encoded Code Expression Key Notes  Till ASP.NET 3.5 we have used < %=expression%> – Causes XSS  ASP.NET 4 introduces the following new syntax for code expressions. – <%: expression %> – <%= HttpUtility.HtmlEncode(expre ssion) %>  <%: expression %><%: expression %> <%= HttpUtility.HtmlEncode(expression) %><%= HttpUtility.HtmlEncode(expression) %>
  • 49. CSS Improvements Key Notes  VS 2010 has been updated to improve CSS 2.1 Standards.  ASP.NET 4 has been to help render HTML that is compliant with the latest HTML standards  Use of controlRenderingCompatibilityVersion  Default set to 4.0 for ASP.NET 4.0 applications  We can use 3.5 to support legacy markup
  • 51. QUICK RECAP Client Side Improvements
  • 52. QUESTIONS & ANSWERS Client Side Improvements
  • 53. Overview of Dynamic Data  Creates UI automatically that reacts on data.  Pages are created dynamically based on Data configured for the web site.  Linked pages holds relationship between data.  Support for both Linq to Sql and ADO.NET Data Entities.
  • 55. THANK YOU ! ASP.NET 4.0 Presenter : Abhijit Jana (http://abhijitjana.net) Abhishek Sur ( http://abhisheksur.com)

Editor's Notes

  • #39: Aspnet.config located inside version folder.
  • #40: Applicationhost.config lives in System32\Inetsrv\config