I'm trying to create a hyperlink to a pdf stored on our network drive. The problem is that I create the hyperlink through ASP.NET but clicking the link does absolutely nothing. If you inspect the element and click the link it works just fine.
It seems to be related to this issue on HTML links to local network shares.
By downloading the extension for Chrome referenced in that thread I am able to open local links. In Internet Explorer I am able to click the links without any issue or extensions.
I populate the NavigateNurl
through a configuration value:
System.Net.WebUtility.HtmlEncode(configValue)
Here is the path I am using (with slight alterations in name):
file://unk-file01/forms%20engine/Templates/Fake/ES_User_Manual_GBA_FINAL_081514.pdf
<div id="manualMenu" runat="server">
<div id="manual">
<asp:HyperLink ID="ESUserManualLink" Target="_blank" runat="server" Text="GBA User Manual" >
GBA User Manual
</asp:HyperLink>
<asp:HyperLink ID="UnderwritingManualLink" Target="_blank" runat="server"
Text="GBA Underwriting Guide">
GBA Underwriting Guide
</asp:HyperLink>
</div>
</div>
Is there anything else I can do to make this work across all platforms besides hosting the files elsewhere?