Avatar of armbsu
armbsu

asked on 

Gridview link to open a text file

Hello,

I am trying to open a text file using a link in a gridview.  I just want to to open this file in different aspx page for viewing (not for download).  My file location is C:\folder1\file.txt.  The following code does not open the file.

Thanks,
<asp:HyperLink ID="Open" NavigateUrl='<%# "~/openfile.aspx?Path="+ Eval("file_name") %>' Text='<%# Eval("file_name") %>' runat="server" />

Open in new window

.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
armbsu

8/22/2022 - Mon