Re: Opening a local file in a browser
From: Nicole Calinoiu (calinoiu)
Date: 01/22/05
- Next message: jrbtech_at_gmail.com: "Re: VB.NET and ini file"
- Previous message: Sammy: "New ASP.NET proj/multiple IIS Websites"
- In reply to: Mark Rae: "Opening a local file in a browser"
- Next in thread: Mark Rae: "Re: Opening a local file in a browser"
- Reply: Mark Rae: "Re: Opening a local file in a browser"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: jrbtech_at_gmail.com: "Re: VB.NET and ini file"
- Previous message: Sammy: "New ASP.NET proj/multiple IIS Websites"
- In reply to: Mark Rae: "Opening a local file in a browser"
- Next in thread: Mark Rae: "Re: Opening a local file in a browser"
- Reply: Mark Rae: "Re: Opening a local file in a browser"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|