예제 #1
0
        public void fillSelectTableList(DropDownList DropDownPKTb2, String alias)
        {
            DBQueDao          daoObj    = new DBQueDao();
            List <DBQueTable> tableList = daoObj.getTableList();

            foreach (DBQueTable dbTable in tableList)
            {
                ListItem att2 = new ListItem();
                att2.Text  = dbTable.tableName;
                att2.Value = dbTable.tableName + " " + alias;
                DropDownPKTb2.Items.Add(att2);
            }
        }
예제 #2
0
        protected void fillSelectTableList()
        {
            DBQueDao          daoObj    = new DBQueDao();
            List <DBQueTable> tableList = daoObj.getTableList();

            foreach (DBQueTable dbTable in tableList)
            {
                ListItem att2 = new ListItem();
                att2.Text  = dbTable.tableName;
                att2.Value = dbTable.pkColumnName;
                DropDownList1.Items.Add(att2);
            }
        }