protected void UpdateBtn_Click(object sender, EventArgs e)
        {
            UpdateJobPost jobpost = new UpdateJobPost();

            try
            {
                jobpost.jobID               = int.Parse(jobIDtxt.Text);
                jobpost.jobTitle            = jobTitletxt.Text;
                jobpost.dateClosing         = DateTime.Parse(dateClosingtxt.Text);
                jobpost.countryID           = Convert.ToInt32(countryDdl.SelectedItem.Value);
                jobpost.cityID              = Convert.ToInt32(cityDdl.SelectedItem.Value);
                jobpost.jobDescription      = jobDesctxt.Text;
                jobpost.keyResponsibilities = keyRestxt.Text;
                jobpost.qualID              = Convert.ToInt32(qualDdl.SelectedItem.Value);
                jobpost.skillID             = Convert.ToInt32(skillDdl.SelectedItem.Value);
                jobpost.typeID              = Convert.ToInt32(typeDdl.SelectedItem.Value);
                jobpost.duration            = int.Parse(duarationtxt.Text);
                jobpost.startDate           = DateTime.Parse(startDatetxt.Text);
                jobpost.employerID          = Convert.ToInt32("1");
                jobpost.postedBy            = postedBytxt.Text;
                jobpost.statusID            = Convert.ToInt32(statusDdl.SelectedItem.Value);

                BLL_handler.BLL_UpdateJopPost(jobpost);
                Page.ClientScript.RegisterStartupScript(this.GetType(), "Scripts", "<script>alert('You have successfully updated a job post');</script>");
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "Scripts", "<script>alert('There was a problem with adding a job post. Please retype all the fields');</script>");
                jobTitletxt.Text    = "";
                dateClosingtxt.Text = "";
                jobDesctxt.Text     = "";
                keyRestxt.Text      = "";
                duarationtxt.Text   = "";
                startDatetxt.Text   = "";
                postedBytxt.Text    = "";
            }
        }
 public bool BLL_UpdateJopPost(UpdateJobPost updateJobPost)
 {
     return(dBAccess.UpdateJobPost(updateJobPost));
 }