Alert box not being called upon button click
Posted
by user279521
on Stack Overflow
See other posts from Stack Overflow
or by user279521
Published on 2010-04-15T19:30:09Z
Indexed on
2010/04/15
19:33 UTC
Read the original article
Hit count: 117
I have a fairly simple code, a button click event, with the first line being a message box. When the button is clicked, the messagebox is not called.
protected void btnSubmitToCRM_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('btnSubmitToCRM_Click - 1');", true);
if (!ValidateCoreValue())
{
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('btnSubmitToCRM_Click - 1 - False');", true);
return;
}
}
Any ideas?
© Stack Overflow or respective owner