I have the following code behind -
int p = 0;
try
{
p = System.Convert.ToInt16(txt7.Text);
}
catch
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "showMyMessage", "ShowMessage('Value must be numerical');", true);
}
And the function -
<script>
function ShowMessage(message) { alert(message); }
</script>
On debugging it goes into the catch however the pop up is not firing in the front end, what is it I am missing?
On debugging it goes into the catch however the pop up is not firing in the front end, I hope you're not expecting the popup to appear as soon as you debug yor way over theRegisterStartupScriptline?ShowMessage? A definition, or a call to it?