Hi, I'm calling a radalert message from the code-behind (server-side) using this:
string radalertscript = "<script language='javascript'> window.onload = function(){setTimeout('ConfirmationMessage();',0);}</script>";
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "confirm", radalertscript);
In the client side it looks like this:
function ConfirmationMessage()
{
var oWnd = radalert('Message', 310, 120);
oWnd.OnClientClose = function(){window.location.href="Default.aspx";}
}
However I'm not able to do nothing OnClientClose event; not even show a simple javascript alert message.
Am I doing something wrong? Is there a workaround I can use?
Thanks in advance for your help
string radalertscript = "<script language='javascript'> window.onload = function(){setTimeout('ConfirmationMessage();',0);}</script>";
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "confirm", radalertscript);
In the client side it looks like this:
function ConfirmationMessage()
{
var oWnd = radalert('Message', 310, 120);
oWnd.OnClientClose = function(){window.location.href="Default.aspx";}
}
However I'm not able to do nothing OnClientClose event; not even show a simple javascript alert message.
Am I doing something wrong? Is there a workaround I can use?
Thanks in advance for your help