Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable       dtTable = new DataTable();
         BSNLYR.bsnssDDL emp     = new BSNLYR.bsnssDDL();
         dtTable = emp.obtenerDDL();
         DropDownList1.DataSource     = dtTable;
         DropDownList1.DataTextField  = "Parametros";
         DropDownList1.DataValueField = "Parametros";
         DropDownList1.DataBind();
         DropDownList1.SelectedValue = "General";
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dtTable = new DataTable();
         BSNLYR.bsnssDDL emp = new BSNLYR.bsnssDDL();
         dtTable = emp.obtenerDDL();
         DropDownList1.DataSource = dtTable;
         DropDownList1.DataTextField = "Parametros";
         DropDownList1.DataValueField = "Parametros";
         DropDownList1.DataBind();
         DropDownList1.SelectedValue = "General";
     }
 }