MSDN Flash Article: ASP.NET Silverlight Server Controls
In the next issue of the MSDN Flash Newsletter I write about some of the upcoming features in ASP.NET including two new controls specifically designed to take advantage of the richness provided by Silverlight.
The <asp:Silverlight> control allows you to easily incorporate Silverlight content into an ASP.NET page. If you've used Silverlight 2 Beta 1 you'll have noticed that the Visual Studio template offers you both an html page and an ASP.NET page to host your Silverlight application. The aspx page takes advantage of the <asp:Silverlight> control.
The <asp:Silverlight> control can be used with both Silveright 1 and Silveright 2 content. For Silverlight 1 you can associate the control with a JavaScript type to handle interactions. For Silverlight 2 you can of course use managed code. The <asp:Silverlight> control requires ASP.NET 3.5 and there must be a ScriptManager control on the page.
The <asp:Silverlight> control (System.Web.UI.SilverlightControls.Silverlight) lives in System.Web.Silverlight assembly. It renders on the client as an AJAX control of type Sys.UI.Silverlight.Control .
The <asp:MediaPlayer> control allows you to easily incorporate video or audio in your aspx pages in the form of a rich, cross-browser, cross-platform media player. The <asp:MediaPlayer> control uses Silverlight to embed rich media player capabilities in your page including full control of playback (pause, top, skip etc), volume, mute, full-screen, chaptering, closed captioning, markers etc and you don't need to know anything about Silverlight to use it!
The <asp:MediaPlayer> control (System.Web.UI.SilverlightControls.MediaPlayer) is derived from the Silverlight control and lives in the the same assembly. It renders as an AJAX control of type Sys.UI.Silverlight.MediaPlayer .
The ASP.NET 3.5 Extensions quickstarts provide a great introduction to the <asp:Silverlight> and <asp:MediaPlayer> control.
- <asp:Silverlight> introduction and demo
- <asp:MediaPlayer> introduction and demo
Both controls are currently in preview and can be downloaded as part of the Silverlight Tools Beta 1 for Visual Studio 2008.
Technorati Tags: silverlight,mediaplayer,asp.net
Comments
- Anonymous
May 13, 2008
Post: Approved at: May-13-2008 HUGE update to WPF coming http://blogs.msdn.com/tims/archive/2008/05/12