예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var     db  = new DBOps();
            DataSet dbs = db.GetDBs();

            ddlDB.DataSource = dbs;
            ddlDB.DataBind();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var     db  = new DBOps();
            DataSet dbs = new DataSet("Databases");

            dbs = db.GetDBs();
            ddlDB.DataSource     = dbs;
            ddlDB.DataValueField = "name";
            ddlDB.DataTextField  = "name";
            ddlDB.DataBind();
        }