Databinding DropDownList and Label

P

Paul Aspinall

Hi
I'm using a FormView control.

In my EditTemplate, I have bound to a DropDownList. This works fine, by
having the key in my primary table, which is looked up via the binding to my
DDL using the DataSourceID etc..

However, I want to have the value that is in the drop down list to be shown
in the Label control on my ItemTemplate. This is tricky, because the label
control does not have a DataSourceID property for me to use with the
binding.

Whats the best way to achieve this??
Should I just use the DropDownList in my ItemTemplate also, but just disable
it??

Thanks
 
G

Guest

Might not be best way. Populate label on server in ddl selectedindex changed
event.
Good Luck Paul
DWS
 

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

Top