c# - how to get control id in loop to upload 4 file in a single loop? -


     int count = 4;     (int = 0; < count; i++)     {         if (fileupload1.hasfile )         {          }     } 

i tring upload 4 file 4 diff fileupload controls how fileupload1,2,3,4 in if() rest of code me same form how to?

you need put controls in array:

fileupload[] uploads = { fileupload1, fileupload2, ... }; 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -