prevent lstBox item at index =0 ever to be selected
Posted on 2014-11-15
There is a list box with some items in it. Upon user click, the item value is printed on the screen.
Question: How can I make item at index 0 not to be selected ever?
What event I should be using. What code I should be using to perform as described below:
1. If the selected index is -1 and user selects item 0, nothing happens.
2. If the selected index is 3, for example, and user selects item 0, item 3 still remains selected preferably without postback.