hello,
am doing an application (c#.net)wherein i need to add the Fileupload control one below the other on the
click of the Attach more files button; just as we have in the E-Mails. How can the control
get added to the form ? can ne1 help me out ?

cya
Rohan

Recommended Answers

All 4 Replies

hello,
am doing an application (c#.net)wherein i need to add the Fileupload control one below the other on the
click of the Attach more files button; just as we have in the E-Mails. How can the control
get added to the form ? can ne1 help me out ?

cya
Rohan

hi
you have to create a control dynamically to your form.i think you are working on web,if yes,follow these:

FileUpload f;
f = new FileUpload();
form1.Controls.Add(f);

laghaterohan,
Is it a web project (asp.net)?

yes, it is a web application. in ur code, form1 is the name of the form ? if yes, how can i find whts the name of the form i am working on ??? i knw its silly q..but am a new bieee

cya
rohan

hi
you have to create a control dynamically to your form.i think you are working on web,if yes,follow these:

FileUpload f;
f = new FileUpload();
form1.Controls.Add(f);

You are in wrong forum. You should post it in ASP.NET forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.