33
ASP.net 4 and web dev in VS2010 Alex Mackey

ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

  • Upload
    readify

  • View
    566

  • Download
    4

Embed Size (px)

Citation preview

Page 1: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

ASP.net 4 and web devin VS2010Alex Mackey

Page 2: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

{ display: properly;}

Page 3: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

IDE changesJavascript intellisense, jQuery integration, designer, improved CSS 2.1 support, new project types

ASP.net 4ClientId & Viewstate changes, routing, caching accessibility, config simplification, deployment and lots more

Agenda

Page 4: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

don’t think that these are all the web

changes in .net 4..

Page 5: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

• ASP.net/SQL dev for last 9 years• Previously lead dev on number of health care

applications in UK, Ireland and Middle East• MVP• Recently started with Readify• Organized DDD Melbourne and run

DevEve.net

About me

Page 6: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

ASP.net

Parallel extensions

ASP.net MVC

Silverlight 3

WPF 4

Mult itouch support

Win7 Support

Dynamic Language Runtime

MEF

Workflow

Flowchart

Better standards support

Multi monitor support

Biginteger

Side by side execution CLR

Background GC

Parallel debugging windows

Config less WCF

Discoverable services

Transparency model

Tuple

DynamicObject

IronPython F#

ExpandoObject

Task

Extensibility

REST toolkit

Element to element binding

Concurrent collections

Consume first mode

Entity Framework 2

Pluralization

Oslo

Azure

Cloud Computing

SQL Azure

Corrallated messaging

Dynamic

Compress viewstate

Control overClient Id’s

Extensible caching

Provider based model

Client profile

Client side data binding

Variance

Optional params

Named params

Co-eveloution of VB & C#

Historical debuging

No PIA’s

Model first development

Iron Ruby

Lazy<t>

Lazy loading

Page 7: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 8: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 9: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

visual studiodemos

Page 10: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 11: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 12: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

ASP.net 4

Page 13: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

is asp.netdead/dying?

Page 14: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 15: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

ASP.net 4features demo

Page 16: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

• Extensible caching, encoding and request validation• Expand range of allowed url types

maxRequestPathLength and requestPathInvalidChars• Caching moved to System.Runtime.Caching.dll• Auto start (IIS 7.5 Server 2008 R2)• Compare validator supports Time & DateTime

Other ASP.net changes

Page 17: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

renderingdemos

Page 18: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 19: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 20: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

web.configtransform demos

Page 21: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

Locator Descriptionxdt:Locator=“Match(attributeName)” Can accept comma seperated names of

the attributesxdt:Locator=“Condition(xPath Predicate)”

Can take any Xpath predicates like xdt:Locator="Condition(@name=’Northwind’ or @providerName=’ System.Data.SqlClient’)"

xdt:Locator=“Xpath(/configuration/…)” Can take any complicated Xpath like "XPath(//system.web)"

Page 22: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

Transform Descriptionxdt:Transform=“Replace” Replaces the first matched

node

xdt:Transform=“Remove” Removes the first matched node

xdt:Transform=“RemoveAll” Removes all the matching nodes

xdt:Transform=“Insert” Inserts the node at the end

xdt:Transform=“SetAttributes(attributeNames)” Creates or changes values of the existing attributes

xdt:Transform=“RemoveAttributes(attributeNames)”

Removes the attributes if they exist

xdt:Transform=“InsertBefore(XPath)” Inserts the node on the provided Xpath

xdt:Transform=“InsertAfter(XPath)” Inserts the node on the provided XPath

Page 23: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

msDeploydemos

Page 24: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

Performance

Page 25: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

App startup performance

blogengine

dasblog

dotnetnuke

screwturnwiki

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5

.net 3.5sp1

.net 4

Page 26: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 27: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

% time in GC v3.5: 11.1 seconds

v4: 7.9

Page 28: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify
Page 29: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

EvolutionNot

Revolution

Page 30: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

• Great Javascript Intellisense• ASP.net fixes some old bugs• Cleaner HTML• New routing and extensible

caching • Fantastic deployment

Summary

Page 31: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

http://www.asp.net/learn/whitepapers/aspnet4http://blog.hmobius.comhttp://phrogz.net/js/classes/OOPinJS2.htmlhttp://msdn.microsoft.com/en-us/library/s57a598e.aspxhttp://msdn.microsoft.com/en-us/library/ee410579.aspxhttp://live.visitmix.com/MIX10/Sessions/FT03http://vishaljoshi.blogspot.com/2009/03/how-does-web-deployment-with-vs-10.htmlhttp://www.iis.net/download/webdeployhttp://www.hanselman.com/blog/WebDeploymentMadeAwesomeIfYoureUsingXCopyYoureDoingItWrong.aspx

Advanced Javascript by John Resig

Further reading

Page 32: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

TFS Unboxed

Learn what is involved in getting TFS 2010 up and running in your development environmentStephen Godbold & Dr Tafline Murnane

Monday 2 August 2010 Level 5, 4 Freshwater Place, SouthbankAM session: 8:30am – 12:15pmPM session: 1:15pm – 5:00pm $75 + GST (includes light refreshments)

Page 33: ASP.NET 4 & Web Dev in Visual Studio 2010 - Alex Mackey, Readify

Any questions?readify.net 1300 666 274

[email protected]