troubleshooting Question

ListBox With Multiple Selection Mode

Avatar of GENTP
GENTP asked on
Editors IDEs.NET ProgrammingASP.NET
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.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 8 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 8 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004