The only PostBack would be the one that adds the "input type=file" elements
to the page. At that point, the user inputs the files, and submits the form.
No additional PostBacks necessary. On the server side, you just grab the
Request.Files Collection. You don't even need to know how many inputs were
added; the number will be Request.Files.Count.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.
"andrei" <> wrote in message
news:%...
> Thank you, Kevin and Sankalp, for your feedback.
>
> I tried both options (client side only vs. round trip to the server to add
> controls there)
> Although the client side solution looked better (faster), what if there is
a
> need for a postback before actually uploading the files ? I will loose all
> the dynamically added controls after a reload of the hmtl...
>
> So the solution is to show at the beginning a reasonable number of file
> controls (10, for ex.). If the users need more, they will provide the
number
> and click a button, so another "n" controls will be added from the
> code-behind.
>
> Andrei.
>
>