Hello,
I am using the script below to open a new window and once opened,
redirect to that open window from the original window:
private void btnNewPDFWindow _Click(object sender, System.EventArg s e)
{
string NewPage = "NewPageZoom.as px";
string ScriptBlockNewP age = "<script language='javas cript'>var
NewPDFPage=wind ow.open('" + NewPage + "','PDFPage');" ;
ScriptBlockNewP age = ScriptBlockNewP age +
"NewPDFPage.foc us();</script>";
Response.Write( ScriptBlockNewP age);
}
For some reason, with the code above, I have to click the button twice
in order to get it to focus to the 2nd window again.
Any ideas?
Regards,
TC
I am using the script below to open a new window and once opened,
redirect to that open window from the original window:
private void btnNewPDFWindow _Click(object sender, System.EventArg s e)
{
string NewPage = "NewPageZoom.as px";
string ScriptBlockNewP age = "<script language='javas cript'>var
NewPDFPage=wind ow.open('" + NewPage + "','PDFPage');" ;
ScriptBlockNewP age = ScriptBlockNewP age +
"NewPDFPage.foc us();</script>";
Response.Write( ScriptBlockNewP age);
}
For some reason, with the code above, I have to click the button twice
in order to get it to focus to the 2nd window again.
Any ideas?
Regards,
TC
Comment