17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightMake sure that you add a connection string named NorthPoleDB to the web.config(Listing 5-25).Listing 5-25:Adding a connection string.Adding and configuring MediaElementNext, we will add a MediaElement to the Silverlight application. <strong>The</strong> MediaElementcomponent will be responsible for playing the video data that our handler will serve tothe Silverlight application. Open MainPage.xaml in the designer window and drag aMediaElement object into it. Resize it so that it will look like in Figure 5-36.Figure 5-36:Adding a MediaElement object.222

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!