© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Write better Web Applications – New Core Services & Project Options – New Ajax Options – Management is easier Write Faster – New IDE features – New Controls improvements – More… © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Setting up VS2010 Beta 1 is no different then VS 2008 It can be installed side-by-side with VS 2008.NET Framework 4.0 can co-exist with.NET 2.X/3.X even in the same process For IIS, the default ASP.NET version is 4.0 Uninstalling VS 2010 wont hurt VS208 Remember: BETA! © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 3
There are three different versions that target different audience – The Express Edition Free! Target Students and Hobbits Only basic functionality for code and debug – Professional Full version with no team system tools for architecting, testing, performance, and team collaboration – VSTS – Team System Edition The ultimate version © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 4
IDE is now based on WPF – Clears the UI organization – Reduces clutter and complexity – Better supports multiple document windows – Better multi-monitor support – Zooming with the CTRL + Mouse Wheel – Easier to extend Internals have been redesigned using Managed Extensibility Framework (MEF) – More extensibility points – Much easier Add-in dev experience (On-Line VS Gallery) © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 6
Improved CSS Compatibility HTML and Jscript Snippets Jscript intellisense Enhancements Quick Search (Navigate To..) Call Hierarchy Consume First + Generation © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Configure one or more custom output-cache providers More aggressive and more intelligent output-caching strategies for your Web sites <add name="DiskCache" type="Test.OutputCacheEx.DiskOutputCacheProvider, DiskCacheProvider"/> © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 10
New compression option for both kinds of out-of- process session-state providers(State service, MSSQL). Using behind the scene, the.NET Framework System.IO.Compression.GZipStream class <sessionState mode="SqlServer" sqlConnectionString="data source=dbserver;Initial Catalog=aspnetstate" allowCustomSqlDatabase="true" compressionEnabled="true" /> © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 11
System.Runtime.Caching.dll assembly – System.Runtime.Caching.MemoryCache class Allow call from any Application Type without System.Web.dll dependency 12 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
More granular view into the resource consumption % Managed Processor Time Managed Memory Used (in aspnet.config) © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 13
Expand URL range from 260 characters (old asp.net) to customize value Customize request path validator <httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" />,*,%,&,:,\" />
Prevent Cross-site scripting (XSS) attacks Validate Process on HttpRuntime Customizable with your code public class CustomRequestValidation : RequestValidator { protected override bool IsValidRequestString( HttpContext context, string value, RequestValidationSource requestValidationSource, string collectionKey, out int validationFailureIndex) {…} }
Use with IIS 7.5 PreloadProvider using System.Web.Hosting.IProcessHostPreloadClient public class CustomInitialization : System.Web.Hosting.IProcessHostPreloadClient { public void Preload(string[] parameters) { // Perform initialization. } In applicationHost.config }
Web.config Minification Redirecting a Page Permanently (Extensible HTML,URL and HTTP Header Encoding) Better Multi-Targeting 17 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
New template engine for client development Declarative Behavior Can work with DataView Control <ul id="myTemplate" class="sys-template" sys:attach="dataview" > {{ Name }} {{ Description }} © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 20
Incorporating Code into a Template by Using the code:if, code:before, and code:after Attributes {{BirthDate.localeFormat("dd/MM/yyyy")}} {{ Name }} {{ Description }} © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 21
DataView Control AdoNetServiceProxy Class Refactoring Microsoft Ajax Libraries DOM Ready Event JSONP 22 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Feature for Search Engine Optimize (SEO) Allow set page meta tags keywords Description Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Keywords="These, are, my, keywords" Description="This is a description" %> © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 25
.ViewStateMode – Enabled (default value) – Disabled – Inherit Can be specified separately for each control Can be forced on all control at the Page Directive 26 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Using ASP.NET Standard Browser Capabilities – Use aspnet_regbrowsers.exe –i, will create ASP.BrowserCapsFactory.dll and install to GAC – Restart IIS (iisreset) Custom your Browser Capabilities – Derived HttpCapabilitiesProvider Class – Override the GetBrowserCapabilities – Register to web.config – Can use in Global.asax Application_Start() Event 27 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel New browser Definition Files : Chrome.browser FireFox.browser iPhone.browser Safari.browser BlackBerry.browser Opera.browser GateWay.browser Safari.browser IE.browser Generic.browser Default.browser
Simple Urls and SEO optimizations Can specify rules for URL structure Reading the values from a Web Form, Accessing in Markup and specify a routeparameter in Binding Page.RouteData.Values["searchterm"] as string; ">Search for Yosi … © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 28
At last, Controlling the generated Client id’s – ClientIDMode AutoID – Auto Generated by ASP.NET. Static – Fixed ID Predictable – Usually for repeating template control, generally controlled via ClientIDRowSuffix to be a unique value Inherit –default behavior 29 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Works with LinqDataSource and EntityDataSource Helps in filtering database results Using different kind of expressions: TableName="Products"> © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 30 Search Range Property Custom
ASP.NET Chart Control HTML 31 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Templated Helpers Areas Support for Data Annotations © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 34
Preview 2 and beyond – Client Validation – Strongly-typed input helpers – Strongly-typed link helpers – Asynchronous Controller Actions – More based on feedback © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
MVCWeb Forms You want full control over markupYou like programming against the reusable control abstraction that encapsulate UI and logic You want a framework that enforces separation of concerns You like using the WYSWIG designer and would rather avoid angle brackets TDD/Unit Testing is a priority for youYou like keeping logic on the server rather than hand writing Javascript Control abstractions get in your way more than they help Unit testing with the MVP pattern is sufficient for your needs You like writing Javascript
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Web Packaging - Packaging your web applications into.zip files Web.Config Transformation - Transforming your web.config file (i.e. connection string, debug flags etc) from dev environment to production environment DB Deployment - Packaging and deploying your SQL Server databases along with your web application Web Publishing - Using Web 1-Click Publish functionality to deploy your web application with ease. 39 © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
ASP.NET 4 Better Core Services ASP.NET 4 Better : Web Forms Ajax MVC Dynamic Data ASP.NET 4 Faster Coding © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Official sites – Central landing site: – Forums: Source available – Source drop: Blogs – – – –
WEB DEVLOPERS COMMUNITY (WDC) New Technologies Architecture Legacy Systems Data Traffic & Maintenance New Languages Community Driven JOIN WDC !! Every First Sunday of Any Month © Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel Thank You ! Please Fill your Evaluation Forms