Dear All,
Have good day,
I am trying to attatch file like yahoomail attatchement ,it means displaying name of file and Remove link after Button_click event fire.
protected void Page_Load(object sender, EventArgs e)
{
LinkButton1.Visible = false;
label2.Visible = false;
}
if (FileUpload1.HasFile)
try
{
FileUpload1.SaveAs("e:\\parimal\\" + FileUpload1.FileName);
Label1.Text = "File name: " + FileUpload1.PostedFile.FileName + "<br>" +
FileUpload1.PostedFile.ContentLength + " kb<br>" +
"Content type: " +
FileUpload1.PostedFile.ContentType;
flag = 1;
}
catch (Exception ex)
{
Label1.Text = "ERROR: " + ex.Message.ToString();
}
else
{
Label1.Text = "You have not specified a file.";
}
if (flag == 1)
{
label2.Text = FileUpload1.PostedFile.FileName;
label2.Visible = true;
LinkButton1.Visible = true;
flag = 0;
}
Its work properly for one file ,but if I want to add one then it not work
so plz if U have solution for displaly all the file dynamicallly below of "FILE" control in asp.net
Thanks in Advanced....