G
Guest
Hello,
I try to open a new Window in code behind with :
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.open('toto.doc');", true);
My problem is that the new window is created but it disappears immediatly
just after creation!!
For information, I tried this:
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.location=''toto.doc';", true);
IE7 ask me to validate the download in the top of the browser (it is a
security message that we have to validate to continue...)
I tried also this:
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.open(Image.jpg');", true);
I have a new Window with my image!
In fact, it doesn't work with files that need to have the validation message
(open, save to disk, cancel)
How can I download these kind of files ?
Thanks,
David.
I try to open a new Window in code behind with :
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.open('toto.doc');", true);
My problem is that the new window is created but it disappears immediatly
just after creation!!
For information, I tried this:
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.location=''toto.doc';", true);
IE7 ask me to validate the download in the top of the browser (it is a
security message that we have to validate to continue...)
I tried also this:
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.open(Image.jpg');", true);
I have a new Window with my image!
In fact, it doesn't work with files that need to have the validation message
(open, save to disk, cancel)
How can I download these kind of files ?
Thanks,
David.