a question about Fileupload control

  • Thread starter Thread starter miladhatam
  • Start date Start date
M

miladhatam

hi
i want make a page that users can upload their picture but my
problem :
how can i dynamically add this control cos i want that they can upload
every pic they have and like gmail if you browse a file in page
automaticaly add a fileupload control in below of last control
can you help me ?
thanks
 
hi
i want make a page that users can upload their picture but my
problem :
how can i dynamically add this control cos i want that they can upload
every pic they have and like gmail if you browse a file in page
automaticaly add a fileupload control in below of last control
can you help me ?
thanks

It's not practical to add FileUpload controls to the page. If the user
has selected a file, you can't do a postback without uploading the file.

You can put multiple FileUpload controls on the page, hiding all but one
by using the style display="none". Then you can make them visible using
Javascript.

Or you can dynamically add input elements with type="file" using
Javascript. You can get the uploaded files from the Request.Files
collection.
 
Back
Top