Launch file from button click

I

Ian

All,

I am using the following code on a button click to launch a file from IE.

Response.Write("<script
type='text/javascript'>detailedresults=window.open('" + @fileName +
"');</script>");

The string variable has the value :
@FileName = "file://ourserver/testdir/excelfile.xls"

This works occasionally, but sometimes makes IE hang and not respond.

Any ideas/comments or better ways of simply opening a file via a button
click

TIA
Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top