int count = 4;
for (int i = 0; i < count; i++)
{
if (FileUpload1.HasFile )
{
}
}
i am tring to upload 4 file by 4 diff FileUpload controls but how to get FileUpload1,2,3,4 in my if() the rest of the code will me same form all so how to?
You need to put the controls in an array: