Click here to Skip to main content
11,716,133 members (87,980 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET VBScript Javascript CSS , +
I am trying to add an accordion control to one of my pages.
Following is the code:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">

<cc1:Accordion ID="Accordion1" runat="server">

<cc1:AccordionPane ID="AccordionPane1" runat="server">



</form>

but I am getting this error:
An unhandled exeception has occurred.
Collection was modified; enumeration operation may not execute

Searched on this error but no results seemed to pertain to my problem. Can someone tell me what I have done wrong?

Thanks
Lonnie

Posted 20-Jul-09 6:02am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You seem to be missing <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit">.

Also, make sure you've included the AjaxControlToolkit's DLL in your project. You can also check out
Link for some tips on fixing AJAX problems

Hope this may help u... Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Add CSS class for accordion header and content.

then error will dissapear.....
Smile | :) Smile | :) Smile | :)

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

make sure you've included the SelectedIndex="0" property of   <cc1:Accordion ID="Accordion1" runat="server">
and in accordian tag we should have implemented at least 3 properties along with id , runat properties

Hope this may help u...
  Permalink  
v2
  Print Answers RSS
0 Sergey Alexandrovich Kryukov 599
1 Richard MacCutchan 280
2 Maciej Los 275
3 OriginalGriff 160
4 F-ES Sitecore 145
0 Sergey Alexandrovich Kryukov 1,003
1 Richard MacCutchan 430
2 CHill60 415
3 Maciej Los 399
4 OriginalGriff 385


Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 17 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100