I need a line added to a listbox in ASP.NET to provide some separation from the many options the user can choose from. Currently, we have over 20 different options for the user to choose and I need to put the most popular up top. I have the logic that puts the popular option on top, but think a line in the listbox will help the user separate them from the rest of the list. The listbox items are populated in the code behind.
Share
You can use the optgroup tag to give separation.
To give only a line you will need to do some trickery. See below
If your data is already loaded you could run some jquery after.