I have a button and on its EditData_click event method I call I want to create a javascript popup box and display it on the screen.
Here is what I'm doing but the box doesn't popup!
protected void EditData_Click(object sender, EventArgs e)
{
// don't allow edit to be made after current effective date has passwed
if (EffectiveDate2.SelectedIndex != 0)
{
string script = "<script type=\"text/javascript\">alert('abc');</script>";
ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script);
return;
}
}