Friday, 17 September 2010

Uploading Files using FileUpload control in Update Panel in ASP.Net AJAX

If you have ever tried to use a FileUpload control inside an update panel you may find that it does not work or does not contain a file name. This is by design to avoid security holes where a file could be uploaded without you knowing. There is however a work around for this by making the upload button perform a full post back.

ASP Markup

Code Behind

No comments:

Post a Comment