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

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,778
    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,664
    =?Utf-8?B?cm9kY2hhcg==?=
    Nov 21, 2005
  3. =?Utf-8?B?SmF5YnVmZmV0?=
    Replies:
    9
    Views:
    1,005
    Phillip Williams
    Feb 21, 2006
  4. Amit
    Replies:
    6
    Views:
    14,293
    Assimalyst
    Oct 24, 2006
  5. Replies:
    2
    Views:
    1,094
    Kevin Grover
    Oct 20, 2006
  6. =?Utf-8?B?cm9kY2hhcg==?=

    custom binding expression

    =?Utf-8?B?cm9kY2hhcg==?=, Mar 8, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    453
    =?Utf-8?B?cm9kY2hhcg==?=
    Mar 8, 2007
  7. Bill Anderson

    Custom Component and Custom Textbox binding

    Bill Anderson, Dec 10, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    700
    Bill Anderson
    Dec 15, 2003
  8. JcFx
    Replies:
    0
    Views:
    555
Loading...