List Box: First line selected when page loads.
Posted on 2012-03-15
I have a List Box on a web page as described below:
The first line of the list box is blank, indicated by the below code
ListItem li3 = new ListItem("", "0");
I need the blank line to have the focus when the web page opens.
That is, the blank line will be selected when the page loads without the user selecting it.
Any help is greatly appreciated.