Hello, I have a nested repeater that displays the title of saved documents from a database. How can I make the Linkbutton for each listed file title a hyperlink to open/save/cancel the file from the database?
Code:
<asp:Repeater ID="repMenu1" runat="server">
<HeaderTemplate>
<asp:Label ID="Label1" runat="server" Text="Category: "></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "category")%>
<asp:Repeater ID="repMenu2" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div style="margin-left:15px;">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# GetImageURL(Eval("DocumentType")) %>'></asp:Image>
<asp:LinkButton ID="LinkButton1" runat="server" Font-Size="Small" class="" CausesValidation="false"
Text='<%# Eval("DocumentTitle") %>'
OnClick="OpenFile" >
</asp:LinkButton>
<br />
</div>
</ItemTemplate>
<FooterTemplate>
<br />
</FooterTemplate>
</asp:Repeater>