How to Create Hyperlink to uploaded files in asp.netHi all how to create a link to uploaded files to view the uploaded file using hyperlink and when I was uploading only the first name is displaying I want all the file names to display and create a hyperlink to view the files which have uploaded.
This is the code in aspx.
<div style="text-align:right;width:400px"><asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true"/>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Text="Upload Document" /><br />
<asp:Label ID="Label1" runat="server"></asp:Label>
and Below is the vb code
Protected Sub Button1_Click(ByVal sender As Object, _
ByVal e As System.EventArgs)
If FileUpload1.HasFile Then
FileUpload1.SaveAs("\\Destinationpath\testing\\" & _
FileUpload1.FileName & "<br>"
Catch ex As Exception
Label1.Text = "ERROR: " & ex.Message.ToString()
Label1.Text = "You have not specified a file."
Can Anyone suggest me.Thanks