Click here to Skip to main content
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 7: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 OriginalGriff 341
1 Marcin Kozub 225
2 Sergey Alexandrovich Kryukov 220
3 Praneet Nadkar 197
4 Shweta N Mishra 161
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 17 Dec 2011
Copyright © CodeProject, 1999-2014
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