Make a page that writes a stream to the Response.OutputStream, then
it's just a matter of linking to the page with target="_blank".
File stream example:
FileStream fs=new FileStream("path",FileMode.Open,FileAccess.Read);
try
{
byte[] buffer=new byte[1024];
int read=fs.Read(buffer,0,buffer.Length);
while(read>0)
{
Response.OutputStream.Write(buffer,0,read);
read=fs.Read(buffer,0,buffer.Length);
}
}
finally
{
fs.Close();
}
A note on using file content. Be sure to close the filestream,
otherwise it will be locked until you kill the IIS process, always use
try...finally. And, for security reasons, never send the path to read
from as POST or GET.
Cheers
Hugo