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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightListing 5-3:Adding a connection string to point to the <strong>FILESTREAM</strong> database.Designing the data entry pageNext, we'll build a very simple data entry page that allows a user to enter productinformation and save it into the database along with an image <strong>of</strong> the product. Wewill add an HTML table to the web page and put two text boxes (for Item Number andItem Description), a file upload control for the item image file, and a button to submitthe data.Depending upon your preference, you might want to write your code in the XML sourceeditor or using the UI designer. <strong>The</strong> source code <strong>of</strong> the ASPX page is shown in Listing 5-4.ASP.NET <strong>FILESTREAM</strong> ApplicationItem Number:169

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

Saved successfully!

Ooh no, something went wrong!