471,605 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Databinding DropDownList and Label

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
Feb 6 '06 #1
1 2746
DWS
Might not be best way. Populate label on server in ddl selectedindex changed
event.
Good Luck Paul
DWS
"Paul Aspinall" wrote:
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

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by aroth | last post: by
1 post views Thread by Joe Gass | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
1 post views Thread by Paul Aspinall | last post: by
reply views Thread by marianowic | last post: by
1 post views Thread by Larry Bud | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.