Visual Studio 2010 and ASP.Net 4

16
Visual Studio 2010 and ASP.NET 4 www.manchesterdeveloper .com Lee Englestone presents..

description

A short presentation on some of the new features in Visual Studio 2010 and .NET 4

Transcript of Visual Studio 2010 and ASP.Net 4

Page 1: Visual Studio 2010 and ASP.Net 4

Visual Studio 2010 and ASP.NET 4

www.manchesterdeveloper.com

Lee Englestone presents..

Page 2: Visual Studio 2010 and ASP.Net 4

The Evolution of .NET

In the beginning (2002) there was..

.NET 1.0 & 1.1From January 2006 there was..

.NET 2.0By late 2007 we also had..

.NET 3.0 & 3.5

And on April 12th the world will know..

.NET 4 & VS2010

Page 3: Visual Studio 2010 and ASP.Net 4

Agenda

Overview VS2010 .NET 4

Page 4: Visual Studio 2010 and ASP.Net 4

Overview

2 Years in development VS2010 ships with .NET 4 VS2010 ships with MVC 2 VS2010 ships with Silverlight 4

Launch worldwide April 12th

Page 5: Visual Studio 2010 and ASP.Net 4

VS2010 General

Built using WPF (Windows Presentation Foundation)

Can undock windows Allows for multiple monitor development

Add reference improved No longer stalls Visual Studio

Page 6: Visual Studio 2010 and ASP.Net 4

.NET 4

.NET 1.0 Runtime & class library .NET 1.1 Runtime & class library .NET 2.0 Runtime & class library .NET 3.0 Class library .NET 3.5 Class library .NET 4.0 Runtime & class library

4.0 Runtime runs side by side with 2.0

Page 7: Visual Studio 2010 and ASP.Net 4

VS2010 Intellisense

Code behind auto complete (.cs) Code Navigation ‘Navigate To’

Ctrl + comma Highlight multiple instances (.cs) Box selection Snippet auto complete (aspx) Javascript inference

Page 8: Visual Studio 2010 and ASP.Net 4

Web.config

Minimised by default (No need for additional 3.5 references)

Multiple deployment configurations Web.Debug.config Web.Release.config Web.XXX.config

Page 9: Visual Studio 2010 and ASP.Net 4

c# Optional and Named Parameters

Optional parameters Public ShowProduct(int productId = 0, int

count=10){

…}

Named parameters ShowProduct(productId:10);

Page 10: Visual Studio 2010 and ASP.Net 4

VS2010 Debugging

Pin variables!!!

View call hierarchy

Step backwards

Page 11: Visual Studio 2010 and ASP.Net 4

Routing / SEO improvements products.aspx?category=bikes products/bikes

Code sample

Page.MetaKeywords Page.MetaDescription Response.RedirectPermanent Response.RedirectToRoute

IIS 7 SEO Toolkit Plugin

Page 12: Visual Studio 2010 and ASP.Net 4

ASP.NET WebForms 4

Markup emitted from Server controls tidied up No inline styles by default

Improved css designer support

Smaller viewstate by default

Automatic Html Encoding <%=Heading%> <%: Heading%>

Page 13: Visual Studio 2010 and ASP.Net 4

Charting Controls

Included with ASP.NET 4 (Previously separate download)

Page 14: Visual Studio 2010 and ASP.Net 4

Modelling (Ultimate version only?)

Create sequence diagram

Dependency graphs

Code gen from UML diagrams

Dgml (xml) so can create own diagrams

Page 15: Visual Studio 2010 and ASP.Net 4

Other features

Web deployment packages Can deploy entire site Including running sql scripts and

creating databases

Page 16: Visual Studio 2010 and ASP.Net 4

Summary

VS2010 / .NET 4 an exciting release

Only covered some of the new features for web development

More information http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-s

eries.aspx