this is code
but using this only one file open
i want each hyperlink open different file
plz help me
and i use vb.net LANGUAGE
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<script runat="server">
sub Page_Load
Dim sqlconn As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True")
sqlconn.Open()
Dim cmd As New SqlCommand("Select * From myfiles", sqlconn)
Dim dbread = cmd.ExecuteReader()
customers.DataSource = dbread
customers.DataBind()
dbread.Close()
sqlconn.Close()
end sub
</script>
<body>
<form id="Form1" runat="server">
<asp:Repeater id="customers" runat="server" DataSourceID="SqlDataSource1" OnItemCommand="customers_ItemCommand">
<HeaderTemplate>
<table border="1" width="100%">
<tr bgcolor="#b0c4de">
<th>File ID</th>
<th>File Name</th>
<th>File Path</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr bgcolor="#f0f0f0">
<td><%#Container.DataItem("FileID")%> </td>
<td><%#Container.DataItem("FileName")%> </td>
<td> <asp:HyperLink ID="HyperLink1" runat="server" Style="z-index: 100" NavigateUrl ="~/Ali.doc" Text="hyperlink">Open File</asp:HyperLink></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</form>
</body>
</html>