Error with DropDownList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone please tell me why I can use selectedvalue but not selecteditem
in the following piece of code and how do I get around it???

Thanks...

Error...
Operator "&" is not defined for type "String" and
system.web.ui.webcontrols.listitem


Code...
Dim sMsg As String
sMsg += "Office : " & ddlOffName.SelectedItem & vbCrLf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top