locked
VB.net WEB application dropdownlist selection problem RRS feed

  • Question

  • Hi,

    I am developing in VB.net 2003.
     
    I am defining 2 dropdown lists in a  web page

    Lists are populated at run time

    At run time, when I select an item from the first list:

    - Clear the contents in second list

    - populate the second list with 3 items.

    when now, I select the last item from second list, the 2nd item is returned back instead of the last(3rd).

    Note that when the IndexChanged event occurs for the list, it really returns the listindex 1 (2nd item) instead of 2 (3rd item). This is checked at autopostback time and at index changed time.
     
    Same happens for 4 items but not for 2 in list
     
    Note that if I select 2nd item and then the 3rd, it does not autopost back considering that is the same item(2nd)

    I wonder if something must be done with Windows, or VB service packs, or any hidden properties ....or what else


    Thanks

    PericlesP

    pp
    Wednesday, October 8, 2008 9:51 AM

All replies