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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -