Hello all..
thanks for my last forum..for better solution with fast reply..
I have getting problem with display link button on page aspx.cs ..
I have requirement as below.....
i am trying to display file name with remove link after attached
file.I have done code on aspx.cs as below and get success to display
file name after attaching it...
Below is my code for aspx.cs file:
if (FileUpload1.HasFile)
{
this.FileUpload1.SaveAs(Server.MapPath("upload\\" + FileUpload1.FileName));
this.Label1.Text = "File Uploaded Sucessfull!!!!";
DirectoryInfo dInfo = new DirectoryInfo(Server.MapPath("upload"));
FileInfo[] FilesList = dInfo.GetFiles();
int i = 1;
foreach (FileInfo fi in FilesList)
{
Label li = new Label();
Response.Write("<h2>"+i+"."+fi.Name+"</h2>");
Response.Write("</br>");
i++;
}
output is :
1.file1.txt
2.file2.txt
3.file3.txt
I want beside this file name Remove link..as user attached files.(it means dynamically)
I have tried below on aspx.cs file.
Response.Write("<asp:LinkButton ID=LinkButton1 runat=server> Remove </asp:LinkButton> ");
I hope U can able to understand situation and help me....
reply sir...