Set the selected item of a listbox or radiolist

Discussion in 'ASP .Net' started by Do, Dec 3, 2003.

  1. Do

    Do Guest

    Is this the correct syntax? I'm missing something about the list items, but
    I
    don't know where to find it.

    CType(e.Item.FindControl("lstEUsertype"), ListBox).SelectedValue() = "E"

    I want to automatically select the item in the list that has a corresponding
    value of "E". on the Edit command of the datagrid.

    But I get this

    Object reference not set to an instance of an object.
     
    Do, Dec 3, 2003
    #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. Celebrate

    Box around RadioList Botton

    Celebrate, Aug 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    381
    Celebrate
    Aug 22, 2003
  2. Random

    RadioList and DropDown ??

    Random, Jan 21, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    448
    Random
    Jan 21, 2005
  3. =?Utf-8?B?Q3NoYXJwR3V5?=

    radioList

    =?Utf-8?B?Q3NoYXJwR3V5?=, Feb 3, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,079
    Alec MacLean
    Feb 4, 2006
  4. =?Utf-8?B?Q3NoYXJwR3V5?=

    radiolist

    =?Utf-8?B?Q3NoYXJwR3V5?=, Feb 6, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    474
    Patrick.O.Ige
    Feb 6, 2006
  5. K B
    Replies:
    2
    Views:
    685
Loading...

Share This Page