Solution to the window.open doesn't get focus with SmartNavigation problem

  • Thread starter Thread starter Daniel Roth
  • Start date Start date
D

Daniel Roth

Solution to the window.open doesn't get focus with SmartNavigation problem

Instead of

string script = "<script> var ref = window.open('ViewReport.aspx');</script>";
RegisterStartupScript("ShowReport",script);

In the load event put

ButtonPrint.Attributes.Add("onclick","window.open('ViewReport.aspx');");


Daniel Roth
MCSD.NET
 
Hi Daniel,
I tried your solution but it didn't work out.
Any more ideas?

Any help appreciated,
Winston
 
Hi Winston

You can use window.showModelessDialog or window.showModalDialog

For example:

string script = "<script> var ref =
window.showModelessDialog('ViewReport.aspx','','resizable: Yes;help:
No;');</script>";

RegisterStartupScript("ShowReport",script);

Daniel Roth
MCSD.NET
 
Back
Top