October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You also can use the FileUpload control to save files to a database table. Saving and retrieving files from a database can place more stress on your server. However, it does have certain advantages. First, you can avoid file system permissions issues. Second, saving files to a database enables you to more easily back up your information.
The page in Listing 4.2 enables you to save Microsoft Word documents to a database table (see Figure 4.3).
Figure 4.3. Uploading Microsoft Word documents.

Listing 4.2. FileUploadDatabase.aspx
When you submit the form in Listing 4.2, the btnAdd_Click() method executes. This method ...
Read now
Unlock full access