hi evary one
I'm creating fileupload control on a linKbutton click evant.first time its creating the controls but if i press the link button second time..It's not creating.
what is the problem with that...?
following is code..
protected void LinkButton1_Click(object sender, EventArgs e) {
newattach();
}
private void newattach()
{
int i;
for (i = 0; i < 2; i++)
{
count++;
FileUpload f1 = new FileUpload();
f1.ID = "fileupload" + count.ToString();
f1.Height = 34;
f1.Width = 212;
Panel1.Controls.Add(f1);
}
and count is a static varialbe...
pls help..