Tonight Microsoft took the covers off of the new ASP.NET 3.5 Extensions Preview and the ASP.NET MVC Toolkit
While I'm extremely excited by the new ASP.NET MVC (Model View Controller) I could not overlook the Silverlight Controls for ASP.NET that make it easy to integrate the rich behavior of Silverlight into a web application. It provides an updated MediaPlayer Server Control and Silverlight Server control.
The MediaPlayer Server Control allows you to integrate media sources into your web project without any knowledge of XAML or Javascript using pre-built skins, or by referencing custom XAML skins.
<asp:MediaPlayer runat="server" AutoPlay="true|false" ScaleMode="None|Zoom|Stretch" EnableCaptions="true|false" Height="height" MediaSkin="skinName" MediaSource="URL" Muted="true|false" PlaceholderImageSource="URL" PluginBackColor="color" Volume="volume" Width="width" OnClientChapterStarted="functionName" OnClientCurrentStateChanged="functionName" OnClientMarkerReached ="functionName" OnClientMediaEnded ="functionName" OnClientMediaFailed ="functionName" OnClientMediaOpened ="functionName" OnClientVolumeChanged="functionName" <Chapters> <asp:MediaChapter Position="index" Title="title" ThumbnailImageSource="URL" /> </Chapters> </asp:media>
The Silverllight Server Control allows you to reference your own XAML. The control also references client JavaScript files associated with the XAML.
<asp:Silverlight runat="server" ClientType="ClientType" EnableHtmlAccess="true|false" EnableFrameRateCounter="true|false" EnableRedrawRegios="true|false" InitParamsters="parameters" InstallationMode="None|Inline|Linked" MaxFrameRate="rate" PluginBackColor="color" Source="XamlSource" Version="version" Windowless="true|false" ScaleMode="None|Zoom|Stretch" OnClientPluginError="functionName" OnClientPluginResized="functionName" OnClientPluginLoaded="functionName" OnClientPluginFullScreenChanged ="functionName" </asp:Silverlight>
More on this later... now onto the MVC...