我如何用数据库中的数据填充下拉列表 [英] How would i populate the dropdown list with data from database
本文介绍了我如何用数据库中的数据填充下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if(radioButtonList.SelectedIndex==0)
{
//the code that i need its support to be here;
}
else
{
//same code again;
}
推荐答案
尝试以下操作:
填充DropDownList控件的几种方法
如何动态填充DropDownList
从ASP.NET&中的数据库填充下拉列表C#
在C#中填充下拉框
尝试从上面的链接中获取流程并根据您的要求实施.
Try with the following:
Several Ways to populate DropDownList Controls
How to dynamically populate DropDownList
Populate DropDown List from Database in ASP.NET & C#
Populating a dropdown box in C#
Try to get the process from above links and implement according to your requirement.
这篇关于我如何用数据库中的数据填充下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文