ASP.NET Error : An HtmlSelect cannot have multiple items selected when Multiple is false.
18 February 2009
113 views
No Comment
This error might occur if you have selected your selection list (dropdownlist) multiple times. You can add multiple=”true” e.g.
If you don’t want your selection list to be multiple select enabled then you have to check whether you have selected the selection list multiple times either in your design (aspx file) or in code (aspx.cs file).
if you have populated the dropdownlist from code (dynamically) then check it once again.
I had this problem occured during one of my project because i had populated the dropdownlist dynamically in Page_Load. I got rid of this error after putting the dropdownlist population code inside if(!IsPostBack) condition.
Popularity: 2%
Related posts:
- ASP.NET Error: A potentially dangerous Request.Form value was detected from the client
- SQL Error: Cannot insert the value NULL into column… column does not allow nulls. INSERT fails.
- Multiple file upload with jQuery and php
- Creating selection list, using foreach and section loop in Smarty
- PHP extension error while installing Magento


Leave your response!