custom binding: code expression

Discussion in 'ASP .Net' started by =?Utf-8?B?cm9kY2hhcg==?=, Nov 20, 2006.

  1. hey all,
    i have a bound drop-down list where the contents change all the time. i'm
    having trouble with the SelectedValue binding because there's a scenario
    where the value could be null, in which case I want to default the
    dropdownlist to the selectedIndex 0.

    Is there a way to make my SelectedValue Binding Custom Expression
    conditional and if it's null just pick the first index?

    thanks,
    rodchar
     
    =?Utf-8?B?cm9kY2hhcg==?=, Nov 20, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordan
    Replies:
    2
    Views:
    2,538
    Jordan
    Feb 10, 2004
  2. =?Utf-8?B?cm9kY2hhcg==?=

    datagrid custom binding expression

    =?Utf-8?B?cm9kY2hhcg==?=, Nov 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    4,488
    =?Utf-8?B?cm9kY2hhcg==?=
    Nov 21, 2005
  3. =?Utf-8?B?SmF5YnVmZmV0?=
    Replies:
    9
    Views:
    851
    Phillip Williams
    Feb 21, 2006
  4. =?Utf-8?B?cm9kY2hhcg==?=

    custom binding expression

    =?Utf-8?B?cm9kY2hhcg==?=, Mar 8, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    =?Utf-8?B?cm9kY2hhcg==?=
    Mar 8, 2007
  5. JcFx
    Replies:
    0
    Views:
    281
Loading...

Share This Page