protected void btnsubmit_Click(object sender, EventArgs e)
        {
            ProfessionalDetailsEntity professionaldetailentity = new ProfessionalDetailsEntity();
            ProfessionalDetailBAL professionaldetailBAL = new ProfessionalDetailBAL();

            professionaldetailentity.RecruiterID = "12";
            professionaldetailentity.TotalExprience = txttotalexprience.Text.Trim();
            professionaldetailentity.Designation = txtdesignation.Text.Trim();
            professionaldetailentity.Freelancer = txtfreelancer.Text.Trim();
            professionaldetailentity.EmploymentStaus = rbtemploymentstatus.SelectedItem.Text.Trim();
            professionaldetailentity.jobtype = rbtjobtype.SelectedItem.Text.Trim();

            int result = professionaldetailBAL.InsertDetails(professionaldetailentity);
            {

                if (result > 0)
                {
                    Response.Write("<script language='javascript'>alert('Recored Inserted ')</script>");
                }
                else
                {
                    Response.Write("<script language='javascript'>alert('Sorry')</script>");
                }

            }
        }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     ProfessionalDetailBAL professionalDetailBAL = new ProfessionalDetailBAL();
     ProfessionalDetailsEntity professionalDetailentity = new ProfessionalDetailsEntity();
     professionalDetailentity.TechnicalSkill = txtAddSkill.Text.Trim();
     professionalDetailBAL.AddTechnicalSkillBAL(professionalDetailentity);
     divAddMoreSkills.Visible = false;
 }
 protected void btnSaveSkills_Click(object sender, EventArgs e)
 {
     ProfessionalDetailBAL professioalDetailBAL = new ProfessionalDetailBAL();
     DataTable dt = (DataTable)ViewState["SkillDetails"];
     try
     {
         professioalDetailBAL.SaveTechnicalSkillsBAL(dt);
         Response.Write("<script language='javascript'>alert('Technical Skills Details saved successfully')</script>");
     }
     catch (Exception)
     {
         //  throw;
     }
     finally
     {
         dt = null;
         professioalDetailBAL = null;
     }
 }
 private void BindTechnicalSkills()
 {
     try
     {
         DataSet dsTechnicalSkill = new DataSet();
         ProfessionalDetailBAL professionaldetailBAL = new ProfessionalDetailBAL();
         dsTechnicalSkill = professionaldetailBAL.GetTechnicalSkillsDetailsBAL();
         // Check dataset is not null
         if (dsTechnicalSkill != null)
         {
             ddlTechnicalSkills.DataSource = dsTechnicalSkill;
             ddlTechnicalSkills.DataValueField = "TechnicalSkillId";
             ddlTechnicalSkills.DataTextField = "TechnicalSkillName";
             ddlTechnicalSkills.DataBind();
             ddlTechnicalSkills.Items.Insert(Convert.ToInt32(ddlTechnicalSkills.Items[ddlTechnicalSkills.Items.Count - 1].Value), new ListItem("----Other----", ""));
             ddlTechnicalSkills.Items.Insert(0, new ListItem("--Select--", "0"));
         }
     }
     catch (Exception)
     {
         // throw;
     }
 }