Monday, July 13, 2009

How can i set a limit for the number of selections in an asp.net listbox control?

i.e suppose there are 10 items in a listbox.


A user can only select a maximum of 3 items only from the list. Is there any property that i can set.

How can i set a limit for the number of selections in an asp.net listbox control?
I would just set the autopost back to true, then check if there are more than three selected. If yes, then deselect the last selection. If that doesn't seem like a good solution, try this:





http://www.learnvisualstudio.net/videos/...





# 3110


No comments:

Post a Comment