Dynamic file input
-
Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen
-
Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen
-
Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen
Hi roberts, May be you are looking for this information?[^] daniero