I am making an application which shares files to the user in asp.net c#... I have a grid with column username and filename with a link
Now I want that when I click on filename(can be text, images, doc, PDF) the file should open on different page
My code for aspx page is as below
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3"
CssClass="grid" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
BorderWidth="1px" onrowcommand="GridView1_RowCommand">
<RowStyle ForeColor="black" />
<Columns>
<asp:TemplateField HeaderText="File Name">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("FileName") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Who shared">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle Width="200px" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%#((GridViewRow)Container).RowIndex%>'
Text='<%# Bind("FileName") %>' CommandName="ViewImages" ></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="White" ForeColor="#000066" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="black" Font-Bold="True" ForeColor="White" />
</asp:GridView>
How to open the file in other page so that user can see the content of files online????