Author: praveen.k | Posted on: 6/15/2010 4:49:15 AM | Views : 669

Hi Everyone,

               I have a requirement where i need to add fileupload controls dinamically when Add button is clicked.  In my form i have one Add button and one Save button.
Each time ADD button is clicked one fileupload control must be added to form and i succeded in getting this.
Here is the code
   static int i;
    FileUpload fuPic;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["pnl"] != null)
        {
            Panel pnlfinal = (Panel)Session["pnl"];
            pnlAddfu.Controls.Add(pnlfinal);

   & ...

Go to the complete details ...