I have a linkButton that when clicked adds a control to a placeholder control collection.
When the user clicks the linkButton one HtmlInputFile control is added, but any subsequent clicks doesn't add any more controls to the placeholder!?
I have the following wired to the click event:
private void addFileUpload_Click(object sender, System.EventArgs e)
{
System.Web.UI.HtmlControls.HtmlInputFile addFile = new System.Web.UI.HtmlControls.HtmlInputFile();
addFile.Name = "addFile"+addFileCount;
addFile.ID = "addFile"+addFileCount;
plc_files.Controls.Add(addFile);
addFileCount++;
}
Any help appreciated.
TIA
Affleck
there are 10 types of people in this world those who understand binary, and those who don't.
When the user clicks the linkButton one HtmlInputFile control is added, but any subsequent clicks doesn't add any more controls to the placeholder!?
I have the following wired to the click event:
private void addFileUpload_Click(object sender, System.EventArgs e)
{
System.Web.UI.HtmlControls.HtmlInputFile addFile = new System.Web.UI.HtmlControls.HtmlInputFile();
addFile.Name = "addFile"+addFileCount;
addFile.ID = "addFile"+addFileCount;
plc_files.Controls.Add(addFile);
addFileCount++;
}
Any help appreciated.
TIA
Affleck
there are 10 types of people in this world those who understand binary, and those who don't.