Presentation is loading. Please wait.

Presentation is loading. Please wait.

© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il.

Similar presentations


Presentation on theme: "© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il."— Presentation transcript:

1 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il

2 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

3 Setting up VS2010 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 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 3

4 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 – Premium – Ultimate – Test Professional http://www.microsoft.com/visualstudio/en-us/products © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 4

5

6 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 6

7 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

8

9

10 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 10

11 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 11

12 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

13 More granular view into the resource consumption % Managed Processor Time Managed Memory Used (in aspnet.config) © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 13

14 Expand URL range from 260 characters (old asp.net) to customize value Customize request path validator <httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" />,*,%,&,:,\" />

15 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) {…} }

16 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 }

17 Web.config Minification Redirecting a Page Permanently (Extensible HTML,URL and HTTP Header Encoding) Better Multi-Targeting 17 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

18

19

20 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 20

21 simple imperative syntax for creating controls client-script loader loads all scripts that are required by a client component or control automatically Sys.require([Sys.components.watermark]); Sys.onReady(function() { Sys.create.watermark(".imagetitle", "Add title here...", "watermarked"); }); © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 21

22 You can mix jQuery plug-ins and Microsoft Ajax client controls seamlessly within the same Ajax application Sys.require([Sys.components.watermark, Sys.scripts.jQuery], function() { $(".required“). watermark({WatermarkText: "Add something ere..." }.css({backgroundColor: "red", color: "white" }); }); © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 22

23 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 23

24 DataView Control AdoNetServiceProxy Class Refactoring Microsoft Ajax Libraries DOM Ready Event JSONP 24 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

25 Free CDN hosting of AJAX library scripts – ASP.NET AJAX 4 – jQuery and jQuery Validation Built-in support with

26 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

27

28 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 28

29 .ViewStateMode – Enabled (default value) – Disabled – Inherit Can be specified separately for each control Can be forced on all control at the Page Directive 29 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

30 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 30 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 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

31 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 31

32 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 32 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

33 Works with LinqDataSource and EntityDataSource Helps in filtering database results Using different kind of expressions: TableName="Products"> © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 33 Search Range Property Custom

34 ASP.NET Chart Control HTML 34 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

35

36

37 – Validation – Strongly Typed HTML Helpers – Templated HTML Helpers – Areas 37 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

38 beyond – Client Validation – Strongly-typed input helpers – Strongly-typed link helpers – Asynchronous Controller Actions – More based on feedback © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

39 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

40 Enable dynamic data in existing apps –,, – Auto templates and support for validation rules – Customize with dynamic data templates and get scaffolding Also... – Templates New entity templates Templates for filters New field templates for URL, e-mail, and enumerations – More display options in DisplayAttribute – Many-to-many and inheritance support

41 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

42

43 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. 43 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

44 Server Server Dev Box Dev Box Web Application Copy Web Publish Web

45 Web.Staging.Config XML Transformation Engine (Staging Ready) Outputted to OBJ\staging folder of your project

46 Web.Staging.Config XML Transformation Engine (Staging Ready)

47 Dev Environment Server Environment MS DEPLOY

48 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

49

50 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

51 Official sites – Central landing site: http://asp.nethttp://asp.net – Forums: http://forums.asp.nethttp://forums.asp.net Source available – Source drop: http://codeplex.com/aspnethttp://codeplex.com/aspnet Blogs – http://blogs.microsoft.co.il/blogs/noam http://blogs.microsoft.co.il/blogs/noam – http://weblogs.asp.net/scottgu http://weblogs.asp.net/scottgu – http://hanselman.com/ http://hanselman.com/ – http://haacked.com/ http://haacked.com/

52 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. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

53 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il Thank You ! Please Fill your Evaluation Forms


Download ppt "© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il."

Similar presentations


Ads by Google