F
fripper
When I have a populated list box in a web form in VB under VS .Net 2003 and
then select an item by clicking it and then click a button to perform some
function based on the selected item I find that the selectedindex property
of the list box control is -1 ... indicating no item is selected ... and yet
one IS selected. I suspect this has something to do with page postbacks
but I would appreciate a explanation of what is happening here. Can I not
select and item and then preserve that selectedindex property across a click
of a button control?
Thanks very much.
then select an item by clicking it and then click a button to perform some
function based on the selected item I find that the selectedindex property
of the list box control is -1 ... indicating no item is selected ... and yet
one IS selected. I suspect this has something to do with page postbacks
but I would appreciate a explanation of what is happening here. Can I not
select and item and then preserve that selectedindex property across a click
of a button control?
Thanks very much.