Re: Opening a local file in a browser

From: Nicole Calinoiu (calinoiu)
Date: 01/22/05


Date: Sat, 22 Jan 2005 09:00:23 -0500

Mark,

This is actually a browser security feature; it has nothing to do with your
application in particular. If the browser in question is IE, the simplest
workaround is usually to add the site to the trusted sites list. Of course,
this should only be done if the site is actually sufficiently trustworthy to
merit this.

HTH,
Nicole

"Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:OtuoUKGAFHA.208@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I'm writing a web app in VS.NET 2003, part of which allows users to
> download reports in the form of XML documents to their local machine for
> further processing. I'm using a 3rd-party Java applet to do this, and it
> works perfectly.
>
> However, I'd like to be able to offer users the ability to view the XML
> documents once they've downloaded them. I thought I could do this by
> providing a simple hyperlink, but I must be doing something wrong because
> it's not working.
>
> E.g. let's say they've downloaded a document called 20050122091003.xml
> into the root of their C:\ drive. I created a hyperlink control which,
> when I do a View Source in the HTML that ASP.NET generates, looks like
> this:
>
> <a target="_blank"
> href="file:///C:/20050122091003.xml">C:\20050122091003.xml</a>
>
> However, when I click it, nothing happens. But, if I take the href portion
> of the hyperlink and paste it into the Address box of a browser window, it
> opens perfectly.
>
> What am I doing wrong?
>
> Any assistance gratefully received.
>
> Mark Rae
>



Relevant Pages

  • Re: Hyperlink from an image does not turn into a hand
    ... The hyperlink should function normally when the page is opened in a browser, ... Word is a lousy Web page editor; ... >> Did you read what the ScreenTip says? ...
    (microsoft.public.word.docmanagement)
  • Re: open a Jpg file in a new browser window.
    ... start over by copying the code fragment box that contains the first code ... show up if I put that in my browser. ... right into the hyperlink, still doesn't work. ...
    (microsoft.public.publisher.webdesign)
  • Re: open a Jpg file in a new browser window.
    ... start over by copying the code fragment box that contains the first code ... show up if I put that in my browser. ... right into the hyperlink, still doesn't work. ...
    (microsoft.public.publisher.webdesign)
  • Re: links that begin "www" dont work, those beginning with "http"
    ... my copy of Outlook 2003 for five years has been (and I assume yours ... Some email clients automatically create a valid hyperlink ... It is set as the default browser and is ... The default browser for html and htm files is also ...
    (microsoft.public.outlook.general)
  • Re: using target property of hyperlink in Word 2007
    ... the target is specified in the properties of the hyperlink. ... I have a browser named "MyBrowser" up and running. ... so Word sees an Open document and named frame with the document open or you can create the Frameset within Word. ...
    (microsoft.public.office.misc)