Hi,
I'm fairly new to ASP.NET 2.0 and I'm sure there is a simple solution to my problem.
I have to make an application that searches for files and then allows the user to click the name of the file in order to view it in the web browser. The searching for the file was easy (I used the DirectoryInfo's GetFile method) and I originally had them listed in a GridView. I tried creating a hyperlink column to allows the user to click it and to display the file, but I have no clue as how to open and display the file.
This is my GridView
1 <asp:GridView id="resultGridView" runat="server >
2 <Columns>
3 <asp:HyperLinkField HeaderText="File Name" DataTextField="Name" DataNavigateUrlFields="Name" />
4 <asp:BoundField HeaderText="Size" DataField="Length" />
5 <Columns>
6 </asp:GridView>
Any kind of help would be great. If you have a code solution VB would be preferred.
Thanx,
Bart