troubleshooting Question

ListBox With Multiple Selection Mode

Avatar of GENTP
GENTP asked on
.NET ProgrammingASP.NETEditors IDEs
8 Comments1 Solution717 ViewsLast Modified:
I have a ListBox in an ASP.NET 1.1 app. SelectionMode is set to Multiple. Nothing is currently happening with regards to the listbox on form submit, so there is nothing happening in my button's click event that is causing the error.

Immediately upon selecting 2 (or more) items in the list, and clicking submit, I am hit with an error telling me a dropdownlist cannot have multiple items select. I understand this is an issue revolving around listbox and dropdownlist using the same base class, but have no idea how to fix it.

Any suggestions? (Full error follows)

A DropDownList cannot have multiple items selected.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: A DropDownList cannot have multiple items selected.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros