Private Sub dropdownlistchanged(ByVal sender As System.Object, ByVal e As System.EventArgs) '绑定dropdownlist2 '''添家下面的句子'''添家下面的句子'''添家下面的句子'''添家下面的句子 DropDownList2.Items.Clear() Dim dv As DataView dv = ds.Tables("xangyezilei_table").DefaultView dv.RowFilter = "xid='" + DropDownList1.SelectedItem.Value + "'" DropDownList2.DataSource = dv DropDownList2.DataTextField = "xangyezilei" DropDownList2.DataValueField = "zid" DropDownList2.DataBind()
'绑定dropdownlist2
'''添家下面的句子'''添家下面的句子'''添家下面的句子'''添家下面的句子 DropDownList2.Items.Clear()
Dim dv As DataView
dv = ds.Tables("xangyezilei_table").DefaultView
dv.RowFilter = "xid='" + DropDownList1.SelectedItem.Value + "'"
DropDownList2.DataSource = dv
DropDownList2.DataTextField = "xangyezilei"
DropDownList2.DataValueField = "zid"
DropDownList2.DataBind()
end sub
不行不只什么原啊