protected void Page_Load(object sender, EventArgs e)
 {
     if (this.IsPostBack == false)
     {
         TxtSkill.Focus();
         this.Form.DefaultButton = BtnAdd.UniqueID;
         DataTable ObjSkillTypeTable = MyJobPortalModel.SkillType.GetSkillTypeRecords("status='Active'");
         DdlSkillType.DataSource = ObjSkillTypeTable;
         DdlSkillType.DataBind();
         DdlSkillType.Items.Insert(0, new ListItem("--Select--", "--Select--"));
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.IsPostBack == false)
     {
         TxtSkill.Focus();
         this.Form.DefaultButton = BtnEdit.UniqueID;
         DataTable ObjSkillTypeTable = MyJobPortalModel.SkillType.GetSkillTypeRecords("status='Active'");
         DdlSkillType.DataSource = ObjSkillTypeTable;
         DdlSkillType.DataBind();
         DdlSkillType.Items.Insert(0, new ListItem("--Select--", "--Select--"));
         MyJobPortalModel.Skills ObjSkill = new MyJobPortalModel.Skills(int.Parse(Request.QueryString["Id"]));
         TxtSkill.Text = ObjSkill.SkillName;
         DdlSkillType.SelectedValue = ObjSkill.SkillTypeId.ToString();
         DdlStatus.SelectedValue    = ObjSkill.Status;
     }
 }