|Have a look at this article[^] on codeproject, it shows you how to create dynamic controls. This msdn[^] shows you how to add controls to a place holder.
In the click event of the button, split the filenames into an array, for every item in the array create a linkbutton with a click event and add it to the placeholder
for(int i = 0; i <= FileNames.Length-1 ; i++)
link = new LinkButton();
link.ID = "link"+i.ToString();
link.Text = "http://www.yoursite.com/uploadedfile/"+ FileNames[i];
link.Click += new EventHandler(link_Click);
Instead of the linkbutton you can also use the label control and set the text of the label control as Label1.Text = a href to pass the location to it.
This is just a sample code, just change it to how you need it. You will have to ensure that the controls get added back when a postback takes place.
Last modified: 16mins after originally posted --