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