更新时间:2022-05-23 22:40:49
试试这个
try this
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
Bugtracker objddl=new Bugtracker();
DataSet ds = objddl.GetTeamMember();
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "TM_Name";
DropDownList1.DataBind();
}
}
用于重播任何查询。
for any query hit to replay.
取决于你的代码
TM_Name ='+ DropDownList1.SelectedItem.Text +'
selectedItem是仅打印选定的下拉项.....
你需要什么,你想从下拉列表中获取所有项目???
depend on your code
TM_Name='"+DropDownList1.SelectedItem.Text+"'"
selectedItem is print only selected dropdown items.....
what is your need, do you want to get all items from dropdown list ???