david.li

david.li

  • NA
  • 1
  • 0

hyperlink to a local file

Feb 15 2007 7:02 PM
Hi guys,

I tried to create a hyperlink in c# web application.  This hypelink is linking to a file in my computer.  When I click on the hypelink, it should open a new window with the file.  Here is my code:

<asp: hyperlink id="hyperlink1" runat="server" target="_blank" NavigateUrl="file:///d:\checklist.doc">Check List</asp:hyperlink>

But the new window never show up.  If I change the link to http site or network file, it works fine.

I did search on internet without luck.  I need to fix it in a short time.  I really appreciate any comment.

Thank you,

David