예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AdminBAL  _skillList = new AdminBAL();
                DataTable skill      = _skillList.AdminSkillList();

                DropDownSkills.DataSource     = skill;
                DropDownSkills.DataValueField = "sk_code";
                DropDownSkills.DataTextField  = "sk_name";
                DropDownSkills.DataBind();
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["_resCode"] != null)
            {
                RCodeTextBox.Text  = Request.QueryString["_resCode"];
                HiddenField1.Value = RCodeTextBox.Text;
                GetData();
            }

            if (!IsPostBack)
            {
                AdminBAL  _skillList = new AdminBAL();
                DataTable skill      = _skillList.AdminSkillList();

                dropDownSkills.DataSource     = skill;
                dropDownSkills.DataValueField = "sk_name";
                dropDownSkills.DataTextField  = "sk_name";

                dropDownSkills.DataBind();
                dropDownSkills.Items.Insert(skill.Rows.Count, new ListItem {
                    Text = "Others", Value = "Others"
                });
            }
        }