J
Just Me
Im sure there is a perfectly rational answer to this, I must be missing it
though. A dropdownlist with autopostback turned to 'true'. Notice in the
following list, items 0 and 1 valus are set to "0" and 2 and 3 are set to
"2".
If I select the last item, and it posts back, the third one get selected.
If item 0 was set to "1" and the rest were set to "0" and i selected items
1,2 or 3. Item 1 would get selected. Unless they are all different, it
seems that the first item which has a value not equal to those preceding it
is selected.
a.) Is this normal behaviour and why ?
b.) How can i get around this, as I was going to use the value to indicate
to the system that a particular item has a record associated with it.
<asp:ListItem Value="1" Text="Op1"></asp:ListItem>
<asp:ListItem Value="1" Text="Op2"></asp:ListItem>
<asp:ListItem Value="2" Text="Op3"></asp:ListItem>
<asp:ListItem Value="2" Text="Op4"></asp:ListItem>
though. A dropdownlist with autopostback turned to 'true'. Notice in the
following list, items 0 and 1 valus are set to "0" and 2 and 3 are set to
"2".
If I select the last item, and it posts back, the third one get selected.
If item 0 was set to "1" and the rest were set to "0" and i selected items
1,2 or 3. Item 1 would get selected. Unless they are all different, it
seems that the first item which has a value not equal to those preceding it
is selected.
a.) Is this normal behaviour and why ?
b.) How can i get around this, as I was going to use the value to indicate
to the system that a particular item has a record associated with it.
<asp:ListItem Value="1" Text="Op1"></asp:ListItem>
<asp:ListItem Value="1" Text="Op2"></asp:ListItem>
<asp:ListItem Value="2" Text="Op3"></asp:ListItem>
<asp:ListItem Value="2" Text="Op4"></asp:ListItem>