Open local file from a web page using link in gridview c#
<p>I need to open a some types of files like .jpg, word, .pdf
when the user clicks on link in gridview. Right now i am using
this code and its not opening up. </p>

<p>It is a web application and i have to open the file which is present
in the local drive of user. I would be binding the path of file in NavigateUrl property
of the hyperlink</p>

<pre><code>&lt;asp:hyperlink ID="HyplnkName" runat="server" NavigateUrl= '&lt;%# ConfigurationManager.AppSettings["ImagesFilePath"]) %&gt;' Target="_top" Text='&lt;%# DataBinder.Eval(Container, "DataItem.FileName") %&gt;' /&gt;
</code></pre>
