-- bruce (sqlwork.com)
"Sohan Kamat" <Sohan...@discussions.microsoft.com> wrote in message
news:EE012542-58EE-4A8C...@microsoft.com...
> Hi,
>
> I have a webform and I want to create a hyperlink to a text file, so that
> it
> opens on internet explorer in a new window.
> I have added the following
> <a href="file:///D:/Test/Test.txt" id="hplTest" runat="server"
>>testhyperlink</a>
>
> Now when I click on the hyperlink, nothing is happening. No error.
> when I open a browser and type file:///D:/Test/Test.txt, the file is
> opening.
>
> I would appreciate if anybody could help me out.
> Thanks,
> Sohan
>
Thanks,
Sohan
There is also something where you can write to
and then retrieve some small amounts of data, other than
in cookies, called IsolatedStorage.
As for arbitrarily sending the local path of that file from the
server and have it open automatically in IE, that's a no no.
"Sohan Kamat" <Sohan...@discussions.microsoft.com> wrote in message
news:4FB85F52-01D0-4638...@microsoft.com...
Thanks,
Sohan
private void Page_Load(object sender, System.EventArgs e)
{
System.IO.StreamReader sr = new System.IO.StreamReader("c:\\test.txt");
Response.ContentType = "text/plain";
System.IO.TextWriter tx = Response.Output;
tx.Write(sr.ReadToEnd());
sr.Close();
}
"Sohan Kamat" <Sohan...@discussions.microsoft.com> wrote in message
news:7F045514-B199-43BC...@microsoft.com...
The files are located at D drive on the server. So basically we need to
append the absolute path to that column value(which I am able to do) and then
open that file in internet explorer in a new window(which I am not able to
do).
Could you help me on this please
Thanks,
Sohan
"Sohan Kamat" <Sohan...@discussions.microsoft.com> wrote in message
news:A94CD575-E804-4021...@microsoft.com...