Esempio n. 1
0
    protected void Delete_Click(object sender, EventArgs e)
    {
        PRMS controller = new PRMS();
        bool Success;

        Success = controller.DeleteJobPosting(PostingDropDown.SelectedValue);
        if (Success)
        {
            ClearForm();
            //ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Job Posting Deleted')", true);
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Job Posting Deleted');window.location ='ViewJobPosting.aspx';", true);
            //Response.Redirect("ViewJobPosting.aspx");
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Job Posting not Deleted')", true);
        }
    }