I am creating a web control in vb.net containing a list. I know that I can choose Single or Multiple selection mode, but I'm interested in limiting multiple selection to a given size. For example, prevent the user from selecting more than three items.
I tried adding Validator to the list box, which might be a way forward, but I wondered if there was a way to change the selection mode to something other than the two specified.
Any ideas or suggestions are welcome.
Edit: Unfortunately, due to project limitations, I cannot use Javascript to solve this problem. very annoying, I know!
source
share