Hello everybody, please help me to create dynamically upload file. here is my code:
for (int counter = 1; counter <= 4; counter++)
{
FileUpload fu = new FileUpload();
fu = (FileUpload)Fin dControl("FileU pload" + counter.ToStrin g());
this.Controls.A dd(fu);
}
it return error on " this.Controls.A dd(fu);" it said that Value cannot be null.
Parameter name: child
How to solve this? please help.
THanks
for (int counter = 1; counter <= 4; counter++)
{
FileUpload fu = new FileUpload();
fu = (FileUpload)Fin dControl("FileU pload" + counter.ToStrin g());
this.Controls.A dd(fu);
}
it return error on " this.Controls.A dd(fu);" it said that Value cannot be null.
Parameter name: child
How to solve this? please help.
THanks
Comment