a question about Fileupload control

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
 
G

Göran Andersson

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.
 

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

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top