Archive for July, 2008

Examples for the SharePoint and Office Live javascript API

This post contains a number of examples illustrating the use of the javascript API for SharePoint and Office Live. These examples are intended to demonstrate the core uses of the API for solution developers and show how to use client side script to perform various tasks with the SharePoint web service API.

22Jul2008 | darren | 25 comments | Continued

A javascript API for the SharePoint and Office Live Web Services

This article introduces a cross browser javascript library for calling each of the SharePoint and Office Live web services. The libraries make it easer to utilise the power of these services from client side code for various AJAX scenarios or as a means of enhancing Office Live solutions. The classes are intended to make it easier for Office Live and SharePoint solution developers to use the web services from client side code.

22Jul2008 | darren | 16 comments | Continued

ASP.Net File Upload/Download Module Version 2 (beta 1)

Version 2 (beta 1) of the ASP.Net file upload control is now available in the downloads section of this site. Version 2 brings many enhancements over the orignal component including handlers which allow for storage and download of files using SQL Server databases.

The previous four posts have outlined how version 2 differs from the original component. This post gives the installation instructions and release notes for the beta. For details of what the component does, refer to the original article and these posts:

15Jul2008 | darren | 29 comments | Continued

ASP.Net File Upload Revisited - Part 4, UI and other enhancements

This is the fourth and final post intended for users of version 1 of the ASP.Net file upload component. The next release of the component includes a completely rewritten user interface with custom file upload controls in addition to the client side AJAX progress bar. In addition to this the modalbox javascript library has been used to enhance the look and feel of the progress bar. There is also a cancel button, file extension filtering, and a list of other enhancements.

14Jul2008 | darren | 2 comments | Continued

ASP.Net File Upload Revisited - Part 3, Uploading to SQL Server

This is the third post of four about version 2 of the ASP.Net file upload component. This post describes a new (and much requested) feature which allows uploaded files to be written into a SQL Server database table in chunks as they are read in. This is accomplished through a custom IFileProcessor implementation and is configurable to accomodate different database table structures.

The UPDATETEXT statement in SQL Server is used to append binary data onto the end of an image column. This model exactly follows the pattern used for file processors in the upload module so implementing a SQL Server provider is a fairly straight forward process.

The post describes the upload process in detail and gives sample code which can be used as a basis for creating SQL storage providers for different scenarios.

5Jul2008 | darren | 3 comments | Continued

ASP.Net File Upload Revisited - Part 2, RFC 1867 Parser

This is the second of four posts about the new version of the ASP.Net file upload module. This post concentrates on the new RFC 1867 parser implementation. In this version the parser is more efficient and in tests so far consumes less memory during large file uploads. I thought it would be useful to outline how it works- partly for documentation and partly in case it’s of use to anyone implementing anything similar.

RFC 1867 is a protocol designed to handle one or more uploads of files within an HTTP post. The RFC introduces the file upload HTML element and defines how the file data and other fields are combined in the post in a way that allows them to be split back into their original parts on the server.

The file upload module uses an RFC 1867 parser based on a .Net stream which allows the module to efficiently push incoming request data to external processors for storage in server side files or databases.

4Jul2008 | darren | 6 comments | Continued

ASP.Net File Upload Revisited - Part 1, IIS 7 Support

A while back I posted some code for an HTTP handler and module allowing for large files to be upload in ASP.Net. Since then I’ve had a great deal of feedback and there seem to be quite a few people using the module in various forms- even more since the license was changed to LGPL from GPL so that it could be used in commercial projects.

I’ve been working on a new release of the project, which I expect to be available for download soon. This version includes quite a few changes- some have been requested by users, while others just needed doing.

This post shows how IIS 7 support was added and is the first in a short series which will explain the changes in the control in detail and generally show how to upload large files in ASP.Net.

3Jul2008 | darren | 3 comments | Continued