strsql = "Select Sup_Name + '-----' + Sup_Code As Supdisplay , Sup_Code From kjm_supplier_profile Order By Sup_Name "
cmd = New MySqlCommand(strsql, Conn)
rdr = cmd.ExecuteReader
strddl.DataSource = rdr
strddl.DataTextField = "Supdisplay"
strddl.DataValueField = "Sup_Code"
strddl.DataBind()
strddl.Items.Insert(0, New ListItem("Please Select Supplier", ""))
rdr.Close()
这是使用两个数据将数据绑定到下拉列表。但下拉列表显示0
答案 0 :(得分:0)
FIND_IN_SET