M
Mark Rae
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
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