示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DataTable dtTable = new DataTable();
     BSNLYR.bsnssDept emp2 = new BSNLYR.bsnssDept();
     dtTable = emp2.consultarDept();
     txtDept.DataSource = dtTable;
     txtDept.DataTextField = "Departamentos";
     txtDept.DataValueField = "Departamentos";
     txtDept.DataBind();
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtTable = new DataTable();

            BSNLYR.bsnssDept emp2 = new BSNLYR.bsnssDept();
            dtTable                = emp2.consultarDept();
            txtDept.DataSource     = dtTable;
            txtDept.DataTextField  = "Departamentos";
            txtDept.DataValueField = "Departamentos";
            txtDept.DataBind();
        }