PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Databinding DropDownList and Label

Reply

Databinding DropDownList and Label

 
Thread Tools Rate Thread
Old 06-02-2006, 09:37 AM   #1
Paul Aspinall
Guest
 
Posts: n/a
Default 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


  Reply With Quote
Old 06-02-2006, 09:32 PM   #2
=?Utf-8?B?RFdT?=
Guest
 
Posts: n/a
Default RE: Databinding DropDownList and Label

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
>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off