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;
protected void Page_Load(object sender, EventArgs e)
if (Session["pnl"] != null)
Panel pnlfinal = (Panel)Session["pnl"];
protected void btnAdd_Click(object sender, EventArgs e)
if (i <= 4)
i = i + 1;
View Complete Post