Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Cannot have multiple items selected in a DropDownList.

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: Cannot have multiple items selected in a DropDownList.

Source Error:


Line 13:     function OnSelectedIndexChangecity() {
Line 14:        
Line 15:         var parm1 = document.getElementById("<%=ddlci.ClientID%>");
Line 16:             var strCity = parm1.options[parm1.selectedIndex].text;
Line 17:             if (strCity == "Other") {




Hoew to resovle this Error .plz give me suggestion..
Posted
Updated 8-May-13 0:40am
v2

1 solution

The error is pretty specific: You can't have multiple selections in a drop down list.

Find another control which fits your needs better!
(I can't suggest one, since I have no idea what your site looks like, or what you are trying to do, or let the user do)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900