I want to bring up a js alert box on asp.net button click. The code i have is
String jscript = @"<script language = 'javascript'> alert('This is my title');</script>";
ClientScript.RegisterStartupScript(GetType(), "_jscript", jscript);
it works fine, but I want to have some more js popups later for some validation, where I assume I have to write the same code, but unfortunately it does not load rest of the popups on the same page.
Is this to do with update panels?
The control I am validating is
if (dp_menu.SelectedIndex > 0)
{
//continue program
}
else
{
//show popup
//this pop p doesn't show up at all?
String jscript = @"<script language = 'javascript'> alert('Another popup');</script>";
ClientScript.RegisterStartupScript(GetType(), "_jscript", jscript);
}