DropDownList4.Items.Clear()
DropDownList4.Items.Add("--Select City--")
Dim st As String
st = "select * from tbl_city where State_ID=" + DropDownList3.SelectedItem.Value
Dim cm As New SqlCommand(st, con)
Dim da As New SqlDataAdapter(cm)
Dim d As New DataTable()
da.Fill(d)
DropDownList4.DataSource = d
DropDownList4.DataBind()
this is my code i got error
Incorrect syntax near '='.
please help me
i got error at this line
da.Fill(d)
thanks in advance
please reply fast
i really want help

Amit GuptaRank #190 · 12.8K reputationPosted Aug 26, 2017, 10:54 PM EDT
saurabh tadvi7 reputationPosted Aug 26, 2017, 10:58 PM EDT
saurabh tadvi7 reputationPosted Aug 26, 2017, 11:03 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 26, 2017, 11:59 PM EDT
Ranjit PowarRank #553 · 4.4K reputationPosted Aug 27, 2017, 6:04 AM EDT