Hi Kenneth,

If you want to create server-side controls, then its just not that simple,
although its not difficult at all. You could take a look at some of the
tutorials on [url]www.asp.net[/url] and the docs on how to create/use/fire events/etc
in controls. Basically it will go something like this:
[C#]
//Create a control, in your case it may be HtmlInputFile
TextBox tb = new TextBox();
//Set some properties
tb.Text="blah";
//Get a reference to the server-side form
Control frm=FindControl("FormID");
//Add the dynamically created control to the form
frm.Controls.Add(tb);

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
[url]http://obies.com/vga/blog.aspx[/url]
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"Kenneth Keeley" <kenkeeley@hotmail.com> wrote in message
news:uEj7EzoSDHA.1556@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I have a page that asks the user how many files they wish to upload and
then
> when they click the ok button they get the same page containing that many
> file boxes. Each file boxes has an Id of something like myFile1, myFile2,
> etc. This was ok to create in asp but how can I create the same page in
> ASP.Net. A sample would be great
>
> Here is some ASP code
> For x = 1 to NoPages
> %>
> <INPUT NAME="File<%=x%>" TYPE="file">
> <%
> Next
>
>