Your SlideShare is downloading. ×
0
All About ASP.NET 4.0<br />HosamKamel<br />Senior Software Engineer<br />ESRI Northeast Africa<br />@HosamKamel<br />http:...
Agenda<br />Overview<br />Core Services<br />New Features in the Microsoft Ajax Library<br />Web Forms<br />Dynamic Data<b...
Core Services<br />
Core Service – Web.Config File Minification<br />Web.config (Past)<br />Contains all the configuration for a Web applicati...
Core Service – Extensible Output Caching<br />Old Caching mechanism<br />In memory <br />Heavy traffic<br />Memory consume...
Core Service – Auto-Start Web Applications<br />Application_Load<br />Auto-Start<br />ASP.NET 4 runs on IIS 7.5 on Windows...
Core Service – Permanently Redirecting a Page<br />Response.Redirect<br />HTTP 302 Found (temporary redirect) response.<br...
Core Service – The Incredible Shrinking Session State<br />Depending on how much information a developer saves in session ...
Core Service – Expanding the Range of Allowable URLs<br />URL path lengths to 260 characters.<br />(based on the NTFS file...
Core Service – Multi-Targeting<br /><compilation targetFramework="4.0"/> <br />10<br />
Web Forms<br />
Web Forms– Meta Tags<br />MetaKeywords <br />MetaDescription<br />You can set these properties at run time.<br />12<br />
Web Forms– Enabling View State for Individual Controls<br />ViewStateMode property.<br />Enabled, Disabled, and Inherit<br...
Web Forms – Changes to Browser Capabilities<br />HttpBrowserCapabilities<br />ASP.NET 4, these browser definition files ha...
Web Forms – Routing<br />ASP.NET 4 adds built-in support for using routing with Web Forms.<br />Routing lets you configure...
Web Forms – Client IDs<br />The id attribute in HTML that is rendered for Web server controls is generated based on the Cl...
Web Forms – ASP.NET Chart Control<br />35 distinct chart types.<br />An unlimited number of chart areas, titles, legends, ...
Web Forms – Project Template Changes<br />Empty Web Site<br />Empty web application<br />18<br />
Web Forms – CSS Improvements<br />controlRenderingCompatibilityVersion <br />"3.5". "4.0".<br />Disabling Controls<br />Hi...
Web Forms – Project Template Changes<br />Empty Web Site<br />Empty web application<br />20<br />
Web Application Deployment with Visual Studio 2010<br />
Issues<br />Deploying to a shared hosting site.<br />In an enterprise environment.<br />Web deployment features in Visual ...
Web Packaging<br />IIS Web Deployment Tool (MsDeploy.exe). <br />Zip file + meta data<br />IIS settings, which includes ap...
Web.config Transformation<br />Transform a Web.config file from development settings to production settings<br />24<br />
Database Deployment<br />A Visual Studio 2010 deployment package can include dependencies on SQL Server databases. <br />2...
One-Click Publish for Web Applications<br />IIS remote management service to publish a Web application to a remote server ...
Thank YOU!<br />
Upcoming SlideShare
Loading in...5
×

All About Asp Net 4 0 Hosam Kamel

3,919

Published on

All you need to know about new features in ASP.NET 4.0

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total Views
3,919
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
74
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "All About Asp Net 4 0 Hosam Kamel"

  1. 1. All About ASP.NET 4.0<br />HosamKamel<br />Senior Software Engineer<br />ESRI Northeast Africa<br />@HosamKamel<br />http://Weblogs.asp.net/HosamKamel<br />1<br />
  2. 2. Agenda<br />Overview<br />Core Services<br />New Features in the Microsoft Ajax Library<br />Web Forms<br />Dynamic Data<br />Visual Studio 2010 Web Designer Improvements<br />Web Application Deployment with Visual Studio 2010<br />Q and A<br />2<br />
  3. 3. Core Services<br />
  4. 4. Core Service – Web.Config File Minification<br />Web.config (Past)<br />Contains all the configuration for a Web application.<br />Grown considerably over the past few releases of the .NET Framework as new features have been added, such as AJAX, routing, and integration with IIS 7<br />This has made it harder to configure or start new Web applications without a tool like Visual Studio<br />Web.config ( .NET Framework 4)<br />The major configuration elements have been moved to the machine.config file.<br />The web applications now inherit these settings.<br />4<br />
  5. 5. Core Service – Extensible Output Caching<br />Old Caching mechanism<br />In memory <br />Heavy traffic<br />Memory consumed by output caching can compete with memory demands from other portions of a Web application.<br />Custom output-cache providers.<br />Output-cache providers can use any storage mechanism to persist HTML content<br />5<br />
  6. 6. Core Service – Auto-Start Web Applications<br />Application_Load<br />Auto-Start<br />ASP.NET 4 runs on IIS 7.5 on Windows Server 2008 R2<br />Starting up an application pool, initializing an ASP.NET application, and then accepting HTTP request<br />6<br />
  7. 7. Core Service – Permanently Redirecting a Page<br />Response.Redirect<br />HTTP 302 Found (temporary redirect) response.<br />An extra HTTP round trip when users attempt to access the old URLs<br />RedirectPermanent <br />Issue HTTP 301 Moved Permanently responses.<br />Search engines and other user agents that recognize permanent redirects will store the new URL that is associated with the content, which eliminates the unnecessary round trip made by the browser for temporary redirects.<br />7<br />
  8. 8. Core Service – The Incredible Shrinking Session State<br />Depending on how much information a developer saves in session state, the size of the serialized data can grow quite large.<br />compressionEnabled="true“!<br />8<br />
  9. 9. Core Service – Expanding the Range of Allowable URLs<br />URL path lengths to 260 characters.<br />(based on the NTFS file-path limit)<br />To allow longer or shorter paths (the portion of the URL that does not include protocol, server name, and query string)<br />maxRequestPathLength=“260”<br />To allow longer or shorter query strings<br />maxQueryStringLength="2048" <br />9<br />
  10. 10. Core Service – Multi-Targeting<br /><compilation targetFramework="4.0"/> <br />10<br />
  11. 11. Web Forms<br />
  12. 12. Web Forms– Meta Tags<br />MetaKeywords <br />MetaDescription<br />You can set these properties at run time.<br />12<br />
  13. 13. Web Forms– Enabling View State for Individual Controls<br />ViewStateMode property.<br />Enabled, Disabled, and Inherit<br />13<br />
  14. 14. Web Forms – Changes to Browser Capabilities<br />HttpBrowserCapabilities<br />ASP.NET 4, these browser definition files have been updated<br />blackberry.browser - chrome.browser<br />Default.browser - firefox.browser<br />gateway.browser - generic.browser<br />ie.browser - iemobile.browser<br />iphone.browser - opera.browser<br />safari.browser<br />14<br />
  15. 15. Web Forms – Routing<br />ASP.NET 4 adds built-in support for using routing with Web Forms.<br />Routing lets you configure an application to accept request URLs that do not map to physical files.<br />http://website/products.aspx?categoryid=12 <br />OR http://website/products/software<br />15<br />
  16. 16. Web Forms – Client IDs<br />The id attribute in HTML that is rendered for Web server controls is generated based on the ClientID property of the control<br />ctl00_MasterPageBody_ctl01_Textbox1<br />ClientIDMode <br />AutoID<br />Static <br />Predictable <br />Inherit <br />16<br />
  17. 17. Web Forms – ASP.NET Chart Control<br />35 distinct chart types.<br />An unlimited number of chart areas, titles, legends, and annotations.<br />A wide variety of appearance settings for all chart elements.<br />3-D support for most chart types.<br />Smart data labels that can automatically fit around data points.<br />Strip lines, scale breaks, and logarithmic scaling.<br />More than 50 financial and statistical formulas for data analysis and transformation.<br />Simple binding and manipulation of chart data.<br />Support for common data formats, such as dates, times, and currency.<br />Support for interactivity and event-driven customization, including client click events using Ajax.<br />State management.<br />Binary streaming.<br />17<br />
  18. 18. Web Forms – Project Template Changes<br />Empty Web Site<br />Empty web application<br />18<br />
  19. 19. Web Forms – CSS Improvements<br />controlRenderingCompatibilityVersion <br />"3.5". "4.0".<br />Disabling Controls<br />Hiding div Elements Around Hidden Fields<br />19<br />
  20. 20. Web Forms – Project Template Changes<br />Empty Web Site<br />Empty web application<br />20<br />
  21. 21. Web Application Deployment with Visual Studio 2010<br />
  22. 22. Issues<br />Deploying to a shared hosting site.<br />In an enterprise environment.<br />Web deployment features in Visual Studio 2010 include the following major areas:<br />Web packaging <br />Web.config Transformation<br />Database deployment<br />One-Click Publish for Web applications<br />22<br />
  23. 23. Web Packaging<br />IIS Web Deployment Tool (MsDeploy.exe). <br />Zip file + meta data<br />IIS settings, which includes application pool settings, error page settings, and so on.<br />The actual Web content, which includes Web pages, user controls, static content (images and HTML files), and so on.<br />SQL Server database schemas and data.<br />Security certificates, components to install in the GAC, registry settings, and so on.<br />23<br />
  24. 24. Web.config Transformation<br />Transform a Web.config file from development settings to production settings<br />24<br />
  25. 25. Database Deployment<br />A Visual Studio 2010 deployment package can include dependencies on SQL Server databases. <br />25<br />
  26. 26. One-Click Publish for Web Applications<br />IIS remote management service to publish a Web application to a remote server <br />26<br />
  27. 27.
  28. 28. Thank YOU!<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×