Upload
readify
View
463
Download
1
Tags:
Embed Size (px)
Citation preview
Web development withVisual Studio 2010 & ASP.net 4
Alex Mackey
{ display: properly;}
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
don’t think that these are all the web changes
in .net 4..
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
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
visual studiodemos
ASP.net 4
is asp.netdead/dying?
ASP.net 4features
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
renderingdemos
web.configtransform demos
msDeploydemos
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)"
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
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
% time in GC v3.5: 11.1 seconds
v4: 7.9
notrevolution
evolution
Summary• Great Javascript intellisense support• Fantastic deployment• ASP.net fixes some old bugs and cleaner
HTML• New routing and extensible cacheing
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