I have some code that is calling radalert.
It works perfect in FireFox, but not in IE, IE throws an "Object doesn't support his property or method" error.
Do I need to do something different to get this to work with IE?
Any help would be appreciated.
I have the code in the click event of a button.
if (condition > 0)
{
//do something
}
else
{
string radalertscript = "<script language='javascript'> window.onload = function(){radalert('Error has occurred.', 330, 210);}</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
}
It works perfect in FireFox, but not in IE, IE throws an "Object doesn't support his property or method" error.
Do I need to do something different to get this to work with IE?
Any help would be appreciated.
I have the code in the click event of a button.
if (condition > 0)
{
//do something
}
else
{
string radalertscript = "<script language='javascript'> window.onload = function(){radalert('Error has occurred.', 330, 210);}</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
}