Tuesday, 9 November 2010

"the file attached is invalid" error using asyncfileupload

I recently dabbled with the neat control AsyncFileUpload from the Ajax Control ToolKit which facilitates the asynchronous upload of files via the browser to the server without affecting the rest of the parent page and without causing a full postback.

I did however get an error "the file attached is invalid" when first trying it out.

Eventually fixed by adding the following to the design code:

ClientIDMode="AutoID"

1 comment:

  1. Thanks... this solved my issue..

    ReplyDelete

Comments are moderated, so you'll have to wait a little bit before they appear!