A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Andrew Deegan ,
As far as I think, you could use NavigateUrl in the HyperLink Field to direct to the path you need. And you could use image src to show the image.Just like this:
<asp:DataGrid runat="server" ID="dgAlbum">
<Columns>
<asp:boundcolumn DataField="Title"></asp:boundcolumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink runat="server" ID="ht" NavigateUrl='<%#Eval("filepath") %>'>
<image src='<%#Eval("imagepath") %>'></image>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
Best regards,
Yijing Sun
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.