developing asp.net ajax controls with silverlight barry gervin microsoft regional director...

20

Upload: anna-baker

Post on 04-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft
Page 2: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Developing ASP.NET AJAX Controls with Silverlight

Barry GervinMicrosoft Regional [email protected]

John BristoweDeveloper Advisor, Microsoft [email protected]

Page 3: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Where Are We Now?

What’s New for Web Developers in ASP.NET and Visual

Studio 2008

Real World ASP.NET AJAX

An Overview of Microsoft Silverlight

Developing ASP.NET AJAX Controls with

Silverlight

Page 4: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

What is Microsoft Silverlight?

A cross-browser, cross-platform plug-in for delivering the next generation of .NET-based media experiences and RIAsSupports fast, cost-effective delivery of high-quality video to all major browsers running on Mac OS or WindowsIntegrates with existing Web applications

Page 5: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Silverlight Architecture

v1.1

v1.0

.NET

for S

ilver

light

CLR EXECUTION ENGINE

ASP.NET AJAX

HTML DOMIntegration

Pres

enta

tion C

ore

XAML

POXJSON

RESTRSS

SOAP

DATALINQ XLINQ

DLRRuby Python

WPFExtensible Controls

BCLsGenerics

BROWSER

Integrated Networking

Stack

Application Services

Installer

INPUTSKeyboard Mouse

MEDIAVC-1 WMV MP3

DRMMedia

CONTROLSLayout Editing

UI COREVector Text

Animation Images

Page 6: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

<asp:Media runat="server" />

ASP.NET server control – part of the ASP.NET FuturesEnables you to easily integrate media sources

Audio (WMA) and video (WMV)No knowledge of XAML or JavaScript requiredGenerates the appropriate markup and codeOptionally enables you to customize the look of the media control by using stylesSupports client-side event model, custom chapters and markers

Page 7: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Demonstration

ASP.NET Media Server Control

Page 8: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

A Quick Word on Hosting

Microsoft Silverlight Streaming by Windows Live

http://silverlight.live.com/Offers web designers and developers a free and convenient solution for hosting and streaming4 GB of hosting spaceAdministrative Web site and REST APIs available

Page 9: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

<asp:Xaml runat="server" />

ASP.NET server control – part of the ASP.NET FuturesEnables you to easily integrate XAML and any supporting codeInteraction through client-side JavaScript; Sys.Preview.UI.Xaml.Control

Page 10: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Demonstration

ASP.NET Xaml Server Control

Page 11: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

ASP.NET AJAX Architecture

XHTML/CSS Script

Microsoft AJAX Library

Base Class Library

Script Core Library

Asynchronous Communications

Browser Compatibility

ASPX ASMX

ASP.NET AJAX Extensions

AJAX Server Controls

Application Services Bridge

Asynchronous Communications

ASP.NET 2.0

Page Framework & Server Controls

Application Services

Client Server

Page 12: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Using Silverlight in AJAX Controls

Silverlight provides cross-platform scriptable vector graphics, media and animation capabilities

Suitable for rich presentation beyond basic HTMLEnables incrementally enriching application

ASP.NET AJAX control allows incorporating Silverlight while preserving traditional AJAX development model

Page 13: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Using AJAX Controls with Silverlight

Silverlight provides a model for implementing and packaging components

Use XAML for UI, managed code for logic packaged in assembliesProviding an AJAX API enables easier embedding of Silverlight component in an HTML page and bi-directional communication

Page 14: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

ASP.NET AJAX Controls Overview

Responsible for rendering HTML & script includes & script to instantiate client-side componentsImplement IScriptControl interface

Register with ScriptManager on the pageHand out collections of ScriptReferences, and ScriptDescriptors

<asp:Xaml /> and <asp:Media /> implement the IScriptControl interface; simplifies aspects of using Silverlight

Page 15: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Demonstration

Building an ASP.NET Server Control

Page 16: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Call to Action!

Download and install SilverlightExperiment with XAML, Media, Vector graphics and the rich programming modelThink of new generation of rich ASP.NET controlsSend feedback!

Page 17: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Resources

Canadian Developers Weblogblogs.msdn.com/cdndevs

Page 18: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

What You Experienced Today

What’s New for Web Developers in ASP.NET and Visual

Studio 2008

Real World ASP.NET AJAX

An Overview of Microsoft Silverlight

Developing ASP.NET AJAX Controls with

Silverlight

Page 19: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft

Your Feedback Matters!

Your evaluation form will be delivered to you via email after the event (save paper!)The email will come from [email protected] who completes an evaluation is entered to win an Xbox 360Feedback will be used to improve the event for next year

Page 20: Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft