Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个用户界面,用户将根据它选择一个表名,下一个下拉菜单将得到更新。我想要某种方式来管理第二个下拉列表并列出该选择表中存在的所有列。(我知道这可能是风险并且可以比我想象的更简单)。
比如说:
protected void DropDown2_SelectedIndexChanged(object sender, EventArgs e) { // do all connection things. query="select COLUMN_NAME from ALL_TAB_COLUMNS where TABLE_NAME="+DropDown1.SelectedValue.ToString(); }
将其写入第二个下拉列表中,并在下拉列表中选择表名