I have some logic in server side C# code that checks to see if an insert completed successfully. If not, I throw up a JS alert telling the user what the problem is like this:
if(CData.createNewProtocol(arrList))
{
do some stuff...
}
else
ScriptManager.RegisterStartupScript(this, typeof(string), "", "alert('" + CData.ProcErrMsg + "');", true);
The alert works in IE and Firefox, but not in Chrome. Any idea why? Thanks Doug
drdexter33
Contributor
2289 Points
889 Posts
ScriptManager.RegisterStartupScript javascript alert not working in Google Chrome.
Dec 05, 2012 01:52 PM|LINK
I have some logic in server side C# code that checks to see if an insert completed successfully. If not, I throw up a JS alert telling the user what the problem is like this:
if(CData.createNewProtocol(arrList)) { do some stuff... } else ScriptManager.RegisterStartupScript(this, typeof(string), "", "alert('" + CData.ProcErrMsg + "');", true);The alert works in IE and Firefox, but not in Chrome. Any idea why? Thanks Doug
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: ScriptManager.RegisterStartupScript javascript alert not working in Google Chrome.
Dec 05, 2012 06:04 PM|LINK
Hi,
It should be working fine in Google Crome too!
Do you see any errors in the Console? You can invoke Developer Tools by pressing F12 in the Google Chrome!
Hope it heps u...
Roopesh Reddy C
Roopesh's Space
drdexter33
Contributor
2289 Points
889 Posts
Re: ScriptManager.RegisterStartupScript javascript alert not working in Google Chrome.
Dec 05, 2012 08:00 PM|LINK
it does!
Forgot to check the error coming back from Oracle.
It had a \n in the error..
thanks