Document 389119

Developing ASP.NET AJAX Controls
with Silverlight
John Bristowe
Developer Advisor, Microsoft Canada
[email protected]
Barry Gervin
Microsoft Regional Director
[email protected]
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
What is Microsoft Silverlight?
A cross-browser, cross-platform
plug-in for delivering the next
generation of .NET-based media
experiences and RIAs
Supports fast, cost-effective
delivery of high-quality video to
all major browsers running on
Mac OS or Windows
Integrates with existing Web
applications
Silverlight Architecture
Integrated
Networking
Stack
Application
Services
.NET for Silverlight
BROWSER
DATA
WPF
LINQ XLINQ
ExtensibleControls
DLR
BCLs
Ruby Python
Generics
REST
RSS
SOAP
POX
JSON
HTMLDOM
Integration
CLR EXECUTION ENGINE
Installer
ASP.NET
AJAX
Presentation Core
XAML
UI CORE
INPUTS
DRM
Keyboard Mouse
Media
Vector Text
Animation Images
MEDIA
CONTROLS
VC-1 WMV MP3
Layout Editing
v1.1
v1.0
<asp:Media runat="server" />
ASP.NET server control – part of the ASP.NET Futures
Enables you to easily integrate media sources
Audio (WMA) and video (WMV)
No knowledge of XAML or JavaScript required
Generates the appropriate markup and code
Optionally enables you to customize the look of the media control by
using styles
Supports client-side event model, custom chapters and markers
Demonstration
ASP.NET Media Server Control
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 streaming
4 GB of hosting space
Administrative Web site and
REST APIs available
<asp:Xaml runat="server" />
ASP.NET server control – part of the ASP.NET Futures
Enables you to easily integrate XAML and any supporting code
Interaction through client-side JavaScript; Sys.Preview.UI.Xaml.Control
Demonstration
ASP.NET Xaml Server Control
ASP.NET AJAX Architecture
Client
XHTML/CSS
Server
Script
Microsoft AJAX Library
ASPX
ASP.NET AJAX Extensions
Base Class Library
Script Core Library
Asynchronous Communications
ASMX
AJAX Server
Controls
Application
Services Bridge
Asynchronous
Communications
Browser Compatibility
ASP.NET 2.0
Page Framework
& Server Controls
Application
Services
Using Silverlight in AJAX Controls
Silverlight provides cross-platform scriptable vector graphics, media
and animation capabilities
Suitable for rich presentation beyond basic HTML
Enables incrementally enriching application
ASP.NET AJAX control allows incorporating Silverlight while preserving
traditional AJAX development model
Using AJAX Controls with Silverlight
Silverlight provides a model for implementing and packaging
components
Use XAML for UI, managed code for logic packaged in assemblies
Providing an AJAX API enables easier embedding of Silverlight
component in an HTML page and bi-directional communication
ASP.NET AJAX Controls Overview
Responsible for rendering HTML & script includes & script to instantiate
client-side components
Implement IScriptControl interface
Register with ScriptManager on the page
Hand out collections of ScriptReferences, and ScriptDescriptors
<asp:Xaml /> and <asp:Media /> implement the IScriptControl
interface; simplifies aspects of using Silverlight
Demonstration
Building an ASP.NET Server Control
Call to Action!
Download and install Silverlight
Experiment with XAML, Media, Vector graphics and the rich
programming model
Think of new generation of rich ASP.NET controls
Send feedback!
Resources
Canadian Developers Weblog
blogs.msdn.com/cdndevs
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
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]
Everyone who completes an
evaluation is entered to win an
Xbox 360
Feedback will be used to
improve the event for next year