24
Web development with Visual Studio 2010 & ASP.net 4 Alex Mackey

Web changesandasp4 upload

  • Upload
    readify

  • View
    463

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Web changesandasp4 upload

Web development withVisual Studio 2010 & ASP.net 4

Alex Mackey

Page 2: Web changesandasp4 upload

{ display: properly;}

Page 3: Web changesandasp4 upload

Agenda: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

Page 4: Web changesandasp4 upload

don’t think that these are all the web changes

in .net 4..

Page 5: Web changesandasp4 upload

About me• 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

Page 6: Web changesandasp4 upload

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 GCParallel debugging windows

Config less WCF

Discoverable services

Transparency model

Tuple

DynamicObjectIronPython F#

ExpandoObject

Task

Extensibility

REST toolkit

Element to element binding

Concurrent collections

Consume first mode

Entity Framework 2

Pluralization

Oslo

AzureCloud 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: Web changesandasp4 upload
Page 8: Web changesandasp4 upload

visual studiodemos

Page 9: Web changesandasp4 upload

ASP.net 4

Page 10: Web changesandasp4 upload

is asp.netdead/dying?

Page 11: Web changesandasp4 upload

ASP.net 4features

Page 12: Web changesandasp4 upload

Other ASP.net changes• Extensible caching, encoding and request

validation• Expand range of allowed url types

maxRequestPathLength and requestPathInvalidChars

• Caching moved to System.Runtime.Caching.dll• Autostart web applications (IIS 7.5 on

Windows Server 2008 R2)• Compare validator supports Time & DateTime

Page 13: Web changesandasp4 upload

renderingdemos

Page 14: Web changesandasp4 upload

web.configtransform demos

Page 15: Web changesandasp4 upload

msDeploydemos

Page 16: Web changesandasp4 upload

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 17: Web changesandasp4 upload

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 18: Web changesandasp4 upload

blogengine

dasblog

dotnetnuke

screwturnwiki

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5

.net 3.5sp1

.net 4

http://www.hanselman.com/blog/NET4WebApplicationStartupTime.aspx

Page 19: Web changesandasp4 upload
Page 20: Web changesandasp4 upload

% time in GC v3.5: 11.1 seconds

v4: 7.9

Page 21: Web changesandasp4 upload

notrevolution

evolution

Page 22: Web changesandasp4 upload

Summary• Great Javascript intellisense support• Fantastic deployment• ASP.net fixes some old bugs and cleaner

HTML• New routing and extensible cacheing

Page 23: Web changesandasp4 upload

Further readinghttp://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/webdeploy

Advanced Javascript by John Resig

Page 24: Web changesandasp4 upload

Any questions?

readify.net 1300 666 274simpleIsBest.co.uk

[email protected]