protected void Delete_Click(object sender, EventArgs e) { PRMS controller = new PRMS(); bool Success; Success = controller.DeleteRegion(Region.SelectedValue); if (Success) { ClearForm(); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Region Deleted')", true); } else { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Region not Deleted')", true); } }