Other Recent Articles
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:
- ASP.Net File Upload Revisited – Part 1, IIS 7 Support
- ASP.Net File Upload Revisited – Part 2, RFC 1867 Parser
- ASP.Net File Upload Revisited – Part 3, Uploading to SQL Server
- ASP.Net File Upload Revisited – Part 4, UI and other enhancements
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 | 3 comments | ContinuedASP.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 | 4 comments | ContinuedASP.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 | 8 comments | ContinuedASP.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 | 5 comments | ContinuedUsing ASP.Net 3.5 to read an RSS feed asynchronously
This post shows how to create a custom ASP.Net control which uses the new System.ServiceModel.Syndication namespace in .Net 3.5 to load RSS and ATOM feeds asynchronously via AJAX. The result is a server control and small javascript library that can be used on any ASP.Net page or hosted in a SharePoint web part. The use of the asynchronous load is useful for ensuring that there are no delays in page loading when slower feeds are pulled down- particularly useful on web sites or SharePoint home pages.
14Jun2008 | darren | 21 comments | ContinuedSharePoint Quick Surveys 1.0.2
Yes….hot on the heels of 1.0.1 is another release of the SharePoint Quick Surveys web part. This is a result of user feedback and makes a couple of small changes and fixes. Thanks to all of you who have taken the time to install the solution and try it out for me.
7Jun2008 | darren | 5 comments | ContinuedSharePoint Quick Surveys 1.0.1
This is a quick post to say that I’ve placed version 1.0.1 of the SharePoint Quick Surveys web part in the downloads section. This is a small maintenance release to correct a couple of minor bugs.
5Jun2008 | darren | 0 comments | ContinuedChanging names in file uploads
Quite a few people have been using the ASP.Net file upload module and have been asking if it is possible to save the uploaded files to different locations or with custom file names.
This is possible by changing your implementation of the IFileProcessor interface, specifically the StartNewFile method.
SharePoint Quick Surveys
This article explains how to create a web part which collects SharePoint survey responses and displays graphical results. The webpart can be contained in the side bar of your home page and can display rich graphical results in a variety of formats.
The web part uses the SurveyFieldIterator which is built into SharePoint to display survey questions. These can be displayed in any web part zone. Once a user responds, a web handler (ASHX) generates bar graphs and pie charts of the results using GDI+, although the article also shows how this could easily be changed to use Silverlight for rendering.
The completed project is packaged as a SharePoint feature along with a suitable installer.
17Feb2008 | darren | 58 comments | Continued