G
Gee
I have a form which I need to redirect to a file (could be PDF or Word)
which is on the clients local system but I am having touble getting it to
fire the javascript.
In the PageLoad if not a postback I do
string oFileScript = "<script language='javascript'>" +
"window.location='file:///" + fileName + "';</script>";
Page.RegisterStartupScript("OpenFile", openFileScript);
It is like I need it to do another postback to fire the script.
which is on the clients local system but I am having touble getting it to
fire the javascript.
In the PageLoad if not a postback I do
string oFileScript = "<script language='javascript'>" +
"window.location='file:///" + fileName + "';</script>";
Page.RegisterStartupScript("OpenFile", openFileScript);
It is like I need it to do another postback to fire the script.