0

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

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by __avd
0

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);
0

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);
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.