listbox control, how to dynamically preselect values

Discussion in 'ASP .Net Web Controls' started by Nik, Jul 9, 2003.

  1. Nik

    Nik Guest

    i have a listbox control which i have successfully used to insert data
    in a database tables. Now i am trying to use the data that i have
    inserted to preselect/prepopulate the listbox
    when i am trying to edit the data.

    Does anyone know of an easier way(maybe binding), to bind the related
    db data to
    the listbox rows and select them automatically. the only way i could
    think of is to use the
    finditembyvalue and put it in some kind of loop.

    thoughts??

    Thanks
    Nikhil.
     
    Nik, Jul 9, 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. D. Shane Fowlkes
    Replies:
    0
    Views:
    588
    D. Shane Fowlkes
    Apr 7, 2004
  2. Isaac Wang via .NET 247

    How to preselect multiple items in listbox

    Isaac Wang via .NET 247, Apr 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,999
    =?Utf-8?B?QmluIFNvbmcsIE1DUA==?=
    Apr 27, 2004
  3. =?Utf-8?B?VGltOjouLg==?=

    Preselect item in DropdownList Edit mode???

    =?Utf-8?B?VGltOjouLg==?=, Dec 28, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,559
    =?Utf-8?B?UmFodWwgQW5hbmQ=?=
    Dec 29, 2004
  4. Derrick
    Replies:
    1
    Views:
    809
    =?Utf-8?B?U2FzaGlkaGFyIEtva2t1?=
    Mar 30, 2007
  5. Joel Barsotti

    Can preselect databound listbox items

    Joel Barsotti, Jan 4, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    147
    Joel Barsotti
    Jan 4, 2007
Loading...

Share This Page