Results 1 to 2 of 2

Thread: Selecting a Listbox item

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    1

    Question Selecting a Listbox item

    I am trying to programatically select an item from a listbox on a .net webform. After populating the list in the page load, I want to tell the listbox to select a value from its list as if the user had done so. Can this be done.
    Thanks
    Darren M

  2. #2
    Member
    Join Date
    Dec 2000
    Posts
    51
    set the selectedIndex property of the listbox control to the index desired. This will highlight the item as if the user clicked on it.
    Everyone!!! Can I have your attention please?

    Sit back, Relax and watch the world unfold before your very eyes.

    Mystical isn't it, oh well I tried!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width