asp.net - Can ComboBoxItem holds object value? -


from experience in silverlight, comboboxitem can holds object data, can combobox.selecteditem , cast data object type , databinding object out.

but in asp.net, comboboxitem seems have text , value property databinding. wonder if there way can databinding object out? not searching datasource , find object text , value...

thanks in advance.

you can try in code behind vb...

ctype(ddldropdownlist.items(ddldropdownlist.selectedindex), objecttype) 

Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -