200 likes | 315 Views
Developing ASP.NET AJAX Controls with Silverlight. Barry Gervin Microsoft Regional Director bgervin@objectsharp.com. John Bristowe Developer Advisor, Microsoft Canada john.bristowe@microsoft.com. Where Are We Now?. What is Microsoft Silverlight?.
E N D
Developing ASP.NET AJAX Controls with Silverlight Barry Gervin Microsoft Regional Director bgervin@objectsharp.com John Bristowe Developer Advisor, Microsoft Canada john.bristowe@microsoft.com
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 BROWSER Integrated Networking Stack Application Services Installer .NET for Silverlight ASP.NET AJAX HTML DOMIntegration • DATA • LINQ XLINQ WPF Extensible Controls REST RSS SOAP POX JSON • DLR • Ruby Python • BCLs • Generics CLR EXECUTION ENGINE XAML Presentation Core • UI CORE • Vector Text • Animation Images • INPUTS • Keyboard Mouse • DRM • Media v1.1 • MEDIA • VC-1 WMV MP3 • CONTROLS • Layout Editing v1.0
<asp:Mediarunat="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
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:Xamlrunat="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
ASP.NET AJAX Architecture Client Server XHTML/CSS Script ASPX ASMX Microsoft AJAX Library ASP.NET AJAX Extensions AJAX Server Controls Application Services Bridge Base Class Library Script Core Library Asynchronous Communications 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
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
Your Feedback Matters! • Your evaluation form will be delivered to you via email after the event (save paper!) • The email will come from wwevents@microsoft.com • Everyone who completes an evaluation is entered to win an Xbox 360 • Feedback will be used to improve the event for next year