Daniel Egan Msdn Tech Days Oc

31
Daniel N. Egan Daniel N. Egan Microsoft – Developer Microsoft – Developer Evangelist Evangelist http://www.DotNetDoc.com http://www.DotNetDoc.com http://Twitter.com/DanielEgan http://Twitter.com/DanielEgan What’s New in ASP.Net What’s New in ASP.Net 4.0 4.0 Reaching Tomorrow Today Reaching Tomorrow Today

description

Daniel Egan TechDays 08 Presentation ASP.Net 4.0

Transcript of Daniel Egan Msdn Tech Days Oc

Page 1: Daniel Egan Msdn Tech Days Oc

Daniel N. EganDaniel N. EganMicrosoft – Developer EvangelistMicrosoft – Developer Evangelisthttp://www.DotNetDoc.comhttp://www.DotNetDoc.comhttp://Twitter.com/DanielEganhttp://Twitter.com/DanielEgan

What’s New in ASP.Net 4.0What’s New in ASP.Net 4.0

Reaching Tomorrow TodayReaching Tomorrow Today

Page 2: Daniel Egan Msdn Tech Days Oc

Daniel Egan –Developer Evangelist Microsoft Daniel Egan –Developer Evangelist Microsoft MCSD, MCSD,

Former Microsoft Regional DirectorFormer Microsoft Regional DirectorMicrosoft MVP – ASP.Net, MCSD, MCTMicrosoft MVP – ASP.Net, MCSD, MCT

Former INETA PresidentFormer INETA President INETA Speakers BureauINETA Speakers Bureau Author : Building Websites with VB.Net

and DotNetNuke 3.0 Packt Publishing .Net Certificate Instructor

California State University Fullerton CSUF .Net Advisory Board Member Run DotNetDoc.com Co-Founder – SoCalDotNet TwitterID : DanielEgan

Daniel Egan

Page 3: Daniel Egan Msdn Tech Days Oc

• INETA – International .Net Association– www.Ineta.org

User groups in this Area. User groups in this Area. • OCDotNet – www.OCDotNet.org • SoCalDotNet –www.SoCalDotNet.org• South Bay .Net - southbaynet.org/ • LADotNet –www.LADotNet.org • LA C# - www.LACSharp.org • Inland Empire – www.IEDotNetUG.org

User Groups

Page 4: Daniel Egan Msdn Tech Days Oc

m.Twitter.Com

#TechDays

http://www.Twitter.com/DanielEgan

Twitter Your questions…

Page 5: Daniel Egan Msdn Tech Days Oc

Walk the ASP.NET 4.0 ‘features’ roadmap

Code Plex – Where and Why

ASP.Net AJAX Templates

ASP.Net AJAX and jQuery

Demos, Demos, Demos…

Session Objectives And Agenda

Page 6: Daniel Egan Msdn Tech Days Oc

Releases: What, When And Where?

ASP.NET FuturesASP.NET Futures

July ’07July ’07

ASP.NET 3.5 Extensions PreviewASP.NET 3.5 Extensions Preview

Dec ‘07Dec ‘07

ASP.NET 3.5 SP1 Beta 1ASP.NET MVC Preview

ASP.NET Server Controls for Silverlight Beta

ASP.NET 3.5 SP1 Beta 1ASP.NET MVC Preview

ASP.NET Server Controls for Silverlight Beta

Mar ‘08Mar ‘08

VS10FX4.0VS10FX4.0

Ajax, Dynamic Data, MVC, ..

www.codeplex.com/aspnetwww.asp.net

www.codeplex.com/aspnetwww.asp.net

Started ~Mar ’08

..On-going

Started ~Mar ’08

..On-going

Formal releasesFormal

releasesASP.NET MVC 1.0ASP.NET MVC 1.0

~End ‘08

~End ‘08

Interim drops on codeplex

Interim drops on codeplex

Page 7: Daniel Egan Msdn Tech Days Oc

• www.asp.net: – Formal: CTPs and documentation,

levels of integration, forums ..• www.codeplex.com/aspnet:

– Cutting edge: Sneak peek, informal releases– Broad-reach community-driven feedback– Source-code drops, roadmaps

describe thoughts and priorities

– Currently ~1,100 downloads/day– 61,000 downloads: 216,000 PVs

ASP.NET 'sites'

Page 8: Daniel Egan Msdn Tech Days Oc

CodePlexhttp://www.CodePlex.com/aspnet

Page 9: Daniel Egan Msdn Tech Days Oc

ASP.NET 4.0 'themes'

Best platform for standards Web dev: HTML, CSS, Ajax

(address top customer pain-points)

Best platform for standards Web dev: HTML, CSS, Ajax

(address top customer pain-points)

Support ‘pattern-based’ development

models: MVC,TDD

Support ‘pattern-based’ development

models: MVC,TDD

ASP.NET is a great LOB platform: Easy to

develop and extend data-driven Web

applications

ASP.NET is a great LOB platform: Easy to

develop and extend data-driven Web

applications

Re-invest in the core: (address top

customer pain-points)

Re-invest in the core: (address top

customer pain-points)

Web formsWeb forms

MVCMVCData and

Dynamic DataData and

Dynamic Data

AjaxAjax

Core Infrastructure

Core Infrastructure

Future of Languages : Anders Hejlsberg, Herb Sutter, Erik

Meijer, Brian Beckman

http://tinyurl.com/513778

Page 10: Daniel Egan Msdn Tech Days Oc

ASP.Net WebformsASP.Net Webforms

Page 11: Daniel Egan Msdn Tech Days Oc

• Client IDs:– Developers can manage control

IDs that affect rendered client ID– Remove ID bloat, and ‘mangling’

• URL routing for web-forms:– Friendly-URL handling for web-forms– Configuration model for URL routing

• View-state:– Disable on page, enable on specific controls– Disable on control, enable on child controls– GridView/ListView work

better without view-state

ASP.NET Web-Forms

Page 12: Daniel Egan Msdn Tech Days Oc

ASP.Net AJAX ASP.Net AJAX

Page 13: Daniel Egan Msdn Tech Days Oc

What Is AJAX All About?Server AJAX versus "pure" AJAX

Initial request: HTML

Initial request: HTML

HTMLHTMLForm POSTForm POST

HTML + JSONHTML + JSON

JSONJSONJSONJSON

Rendering

Rendering

Server AJAX

“Pure” AJAX

Page 14: Daniel Egan Msdn Tech Days Oc

• Ajax higher-level components:– Ajax Control Toolkit is a part of the strategy– New controls

• Centralized script libraries and break-up of libraries leads to better performance

ASP.NET Ajax - Toolkit

Page 15: Daniel Egan Msdn Tech Days Oc

Client TemplatesSimple rendering on the client

• Design goals– Performance– Simplicity and readability– Security– XHTML (if you care about that)– Easily embed data into markup: {{ Name }}– Default data context is the current data item– Expression language is JavaScript:

{{BirthDate.localeFormat(“dd/MM/yyyy”)}}– Interspersed code and markup– Declarative behavior and events

Page 16: Daniel Egan Msdn Tech Days Oc

ASP.NET Ajax Templates and data-binding

Page 17: Daniel Egan Msdn Tech Days Oc

ASP.Net AJAX and jQueryASP.Net AJAX and jQuery

Page 18: Daniel Egan Msdn Tech Days Oc

• Created by John Resig• Open source

– MIT and GPL license• Cross-browser compatible

– Internet Explorer 6+, Firefox 2+, Opera 9+, and Safari 2+

• Small footprint– 15KB

• Used by many major websites– Bank of America, Dell, Netflix, NBC …_

• Passionate community

jQuery Overview

Page 19: Daniel Egan Msdn Tech Days Oc

The Microsoft AJAX Framework

ASP.NET AJAX

AJAX RequestsAJAX Requests

Components and ControlsComponents and Controls

Client Templates

Client Templates

AJAX Control Toolkit

AJAX Control Toolkit

jQuery

SelectorsSelectors

AnimationsAnimations

PluginsPlugins

Page 20: Daniel Egan Msdn Tech Days Oc

• Microsoft will not fork jQuery– jQuery included as-is– jQuery included under MIT license– Microsoft will actively contribute to jQuery

• Microsoft will provide full product support– 7/24 Product support through PSS

• Microsoft will integrate jQuery into future versions of Visual Studio– Shipping with ASP.NET MVC

• Microsoft will add Intellisense for jQuery

jQuery And Microsoft

Page 21: Daniel Egan Msdn Tech Days Oc

• $(“#firstName”) – Selects element with Id firstName

• $(":text") – Selects all text boxes

• $(“.required”) – Selects all elements with required class

• $("#grd tr:even")– Select even rows from an

element with an Id of grd

jQuery Selectors

Page 22: Daniel Egan Msdn Tech Days Oc

• $(…).show()• $(…).hide()• $(…).slideDown()• $(…).slideUp()• $(…).fadeIn()• $(…).fadeOut()

jQuery Animation

Page 23: Daniel Egan Msdn Tech Days Oc

• jQuery Plugin Repository– http://plugins.jquery.com/

jQuery Plugins

AJAX (85) Animation and Effects (94) Browser Tweaks (36) Data (51) DOM (58) Drag-and-Drop (11) Events (50) Forms (123) Integration (24) JavaScript (53) jQuery Extensions (103) Layout (67)

Media (40) Menues (39) Metaplugin (15) Navigation (64) Tables (33) User Interface (231) Utilities (104) Widgets (81) Windows and Overlays

(22)

Page 24: Daniel Egan Msdn Tech Days Oc

jQuery In Web Forms Creating A Photo Gallery

Page 25: Daniel Egan Msdn Tech Days Oc

• ASP.Net 4.0– Fixing pain points

• Templates– Making AJAX\Dom integration eaiser

• jQuery + ASP.NET AJAX = Powerful AJAX Framework– jQuery will be fully supported by Microsoft

Conclusion

Page 26: Daniel Egan Msdn Tech Days Oc

• http://www.DotNetDoc.com• http://www.asp.net• http://www.codeplex.com/aspnet

• http://blogs.msdn.com/davidebb/• http://blogs.msdn.com/scothu/• http://haacked.com• http://weblogs.asp.net/bleroy• http://weblogs.asp.net/scottgu• http://www.hanselman.com/blog/

Resources

Page 27: Daniel Egan Msdn Tech Days Oc

TechDays Technology Pilots

• TechDays survey – informing business and technology reporters

Bluetooth opt in Text “survey” to 95495 Privacy policy

• TechDays “Resources on Demand”

Text TuesATwo to 95495 Respond with preferred email

address Resources/links from this session

will be pushed to you via email

• Wireless internet available in the lobby area

• SSID: “TechDays”, no passcode

• Provided by iBahn, hospitality broadband leader

• Internet kiosks also available in the registration area after check-in

Text Messaging Wireless Internet

Page 28: Daniel Egan Msdn Tech Days Oc

Event IDs for TemplateSession Title Text Message Keyword (send to

95495)

SQL Roadshow TuesAOne

MSDN: What’s New for Developers: Highlights from PDC TuesATwo

Partner: Microsoft Licensing and Solution Update TuesBOne

TechNet: Windows Vista, Powershell and Group Policy WedsAOne

MSDN: SQL 2008, VSTO, Silverlight 2.0 WedsATwo

SB2 at TS2: Solution Building for System BuildersTS2 Partner Event: SBS/EBS, Response Point VoIP, and S+S!

WedsBOneWedsBtwo

TechNet: Virtualization and Enterprise Search ThursAOne

MSDN: The Role of the Architect: Today and in the Future ThursATwo

Momentum: Solution Briefing for IT and Business Executives ThursBOne

Momentum Supersize Event ThursBTwo

Dynamics ERP Briefing ThursCOne

Partner: BPOS Deep Dive ThursCTwo

Page 29: Daniel Egan Msdn Tech Days Oc

Your Feedback is Important

• 1. Which technology has your organization purchased, but not yet deployed, that would have the greatest ability to create cost savings?

• 2. What technology has your organization not purchased that would have the greatest impact on cost savings?

• 3. On a scale of 1-5 rate your company’s current level of interest for using IT to make the organization more environmentally friendly.

• 4. On a scale of 1-5 how would you rate your organization’s interest in cloud-based solutions?

• 1. On a scale of 1-5 (5=High, 1=Low), how would you rate your organization’s interest in investing in IT staff or resources within the next 12 months?

• 2. What do you think is the biggest factor influencing your organization’s interest in investing in IT staff or resources within the next 12 months?

Microsoft Technology IT Staffing and Resources

Page 30: Daniel Egan Msdn Tech Days Oc

Slides and Demos

Slides can be

found at:

Demo code can be found at:

www.DotNetDoc.com

Page 31: Daniel Egan Msdn Tech Days Oc