I have server side event handler for Exit button, and this does not close the window. What is the best way to close the designer window?
Here is my code for this.
protected void Exit_Report(object sender, StiWebDesigner.StiExitEventArgs e)
{
Guid Gkey = Guid.NewGuid();
String strScript = "window.close();";
ClientScript.RegisterStartupScript(Page.GetType(), Gkey.ToString(), strScript, true);
}
Exit Button Not Closing Window
Re: Exit Button Not Closing Window
Hello,
Please describe your issue in more details.
Thank you.
Please describe your issue in more details.
Thank you.
Re: Exit Button Not Closing Window
I have a simple asp.net page where I have nothing but StiWebDesigner control. When user goes and select "Exit" from Menu, I simple want to window to close. But window does not close with the exit event handler code I have pasted above. Hope that helps.
Re: Exit Button Not Closing Window
Hello,
The window.close() method will close only the window that is opened by the window.open() method.
Otherwise, closing the windows allowed by the browser security policy.
Thank you.
The window.close() method will close only the window that is opened by the window.open() method.
Otherwise, closing the windows allowed by the browser security policy.
Thank you.
Re: Exit Button Not Closing Window
Forgot to mention that reportdesigner is actually launched by window.open method.
window.open('/reports/reportwebdesigner.aspx?new=true&_id=' + msg.data);
window.open('/reports/reportwebdesigner.aspx?new=true&_id=' + msg.data);
Re: Exit Button Not Closing Window
I fixed this by putting the code in page load method. I am basically doing this.
if (Request.QueryString["stimulsoft_designerfx"] == "ExitDesigner")
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
else
{
//load report designer.....
}
if (Request.QueryString["stimulsoft_designerfx"] == "ExitDesigner")
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
else
{
//load report designer.....
}
Re: Exit Button Not Closing Window
Hello,
Thank you for the information.
Let us know if you need any additional help.
Thank you for the information.
Let us know if you need any additional help.