Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Cannot have multi items selected in 05.01.01 (98)Cannot have multi items selected in 05.01.01 (98)
Previous
 
Next
New Post
12/24/2009 7:38 AM
 

I have a site I have been working on upgrading from 2.x to 5.01.01.  Everything was working well until i ported over a page that has a lot of dropdown fields on it.  Then when the page loads and i try to select an item from the drop down I get an error.  

I try to select the item like this:                               

                                Me.cboMenu5a.ClearSelection()
                                Me.cboMenu5a.SelectedItem.Selected = False
                                Me.cboMenu5a.Items.FindByText(dtMenus.Rows(x).Item("rnitem5").ToString.Trim).Selected = True

When i step through the code it goes past that code fine, and only one item in the list is selected.  Then i let the page finish loading and I get an error.                              

"Cannot have multiple items selected in a DropDownList."Any ideas?Thanks

 
New Post
12/24/2009 8:17 AM
 

Just as soon as you post a questions you find the answer. 

 

Welcome to the thread!

If you don't appear to be setting multiple items to Selected = True, then you may have another problem.  Recently I came across people who would create new ListItem objects and try to add them to multiple list controls, or add them multiple times without instantiating a new ListItem each time.  This can lead to multiple selected items, and trigger the error mentioned here.
 

Peter Brunone
MS MVP, ASP.NET
Founder, EasyListBox.com
Do the impossible, and go home early.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Cannot have multi items selected in 05.01.01 (98)Cannot have multi items selected in 05.01.01 (98)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out