Hello,
In my webapplication I have a gridview. When users serch, their results are displayed in that gridview. Now I want to open that file, appeared as a hyperlink.
I have written following code-
<Columns>
<asp:BoundField DataField="file_name" HeaderText="File Name"/>
<asp:TemplateField HeaderText="Open">
<ItemTemplate>
<asp:HyperLink ID="Open" NavigateUrl='<%# Eval("file_name") %>' Text='<%# Eval("file_name") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
I want to open this text file on a different webpage. I am not geeting how do I do this? When I place my mouse on the link it says-
http://localhost:2222/file1.txt, but does not open up.
This code is running on my m/c and file is on m/c too. but eventually the file will be on the server. Also, the link does not have a full path (c:\folder1\file1.txt). I want to append C:\folder1\ prior to the file1.txt.
How do I do this?
Please help.