Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Building Applications with Silverlight 1... > Building a Silverlight Upload Contro...

Building a Silverlight Upload Control

Now that we are comfortable building custom controls in Silverlight 1.1 alpha, we will dig deeper and create a more sophisticated control—an upload control. The standard file control available in the HTML object model (<input type="file" ...) lacks some very handy features such as:

  • Multiple file selection

  • Asynchronous upload

  • File size validation on the client

In Silverlight, there is OpenFileDialog class that provides you with more advanced functionality and can help deliver some of the above features.

Before we begin building our control, let’s take a broad look at the steps that need to be completed. First, there should be a module that allows a user to select files from the filesystem. Then the selected files need to be read, validated, and posted to the server. On the server there needs to be an HTTP Handler that saves the posted files to a specific location (it could be a filesystem or database).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint