下拉列表显示0

时间:2018-06-13 06:00:43

标签: sql asp.net vb.net

 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

1 个答案:

答案 0 :(得分:0)

FIND_IN_SET