Uploading Files with dynamic controls

D

Dom

Hi

I want to allow users upload a variable number of files from a single page.
User nominates the number of files and then is presented with a
corresponding number of input boxes.

I create the input boxes dynamically, but am unable to access the
HttpPostedFile for each server control once the page is posted.

Is is possible to create a control on postback and the user viewstate to
associate the file from the reponse header so that I can exploit the
properties and
methods of the HttpPostedFile to handle the file uploading for each file.

Or am I approaching this problem the wrong way.

Thanks for your time

Dominic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top