G
Geary
I have a drop down list on an asp.net 2 page that is bound to a table.
By default it displays the first item as the selected item. But I want
to make sure that the user must change the selection. I am using the
change-selection event to trigger so other code. If the user is
satisfied with the default this other code won't run. So I am adding an
additional .item.add("(None)") after the .databind() to add a (None)
selection to the list. The problem is that the (None) selection is at
the bottom of the list. How do I force the (None) selection to be the
initial selected item? Or is there a better way of doing this? If I
put the .item.add before the .databind, the (None)item is overwritten
with the bound data.
By default it displays the first item as the selected item. But I want
to make sure that the user must change the selection. I am using the
change-selection event to trigger so other code. If the user is
satisfied with the default this other code won't run. So I am adding an
additional .item.add("(None)") after the .databind() to add a (None)
selection to the list. The problem is that the (None) selection is at
the bottom of the list. How do I force the (None) selection to be the
initial selected item? Or is there a better way of doing this? If I
put the .item.add before the .databind, the (None)item is overwritten
with the bound data.