Launch file from button click

  • Thread starter Thread starter Ian
  • Start date Start date
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
 
Back
Top