Results 1 to 2 of 2

Thread: ListBox troubles

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    ListBox troubles

    Hello all,

    I'm having trouble trying to get items in one list box to another list box using the SelectedIndexChanged event on the first listbox. When I select the item in the first listbox that I want to display in the second list box, it will always select the top item, or index 0 and then display the same thing over and over again. It won't let me add differenect items. I know this is some sort of page load thing or maybe its the way I'm loading the items into the first listbox. I've included the project so if anyone can explain, or even try to make it work the way I want it would really clear up some issues. This is for a class assignment so thats why I'm doing the things that I'm doing, thanks.

    Matthew
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Nov 2002
    Location
    Left past the postbox
    Posts
    30

    Reply

    Make sure you have viewstate to true else it will reset to the default value on postback.
    Never hit a man with glasses, hit him with a baseball bat instead.

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