protected void Button1_Click(object sender, EventArgs e)
{
FileUpload F = new FileUpload { ID = "FF" };
PlaceHolder1.Controls.Add(F);
}
protected void Button2_Click(object sender, EventArgs e)
{
FileUpload FU = (FileUpload)PlaceHolder1.FindControl("FF");
Label1.Text = Fu.filename;
}
so i cant find the fileupload at run time
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…