AJAX中的Accordian控制 [英] Accordian control in AJAX
问题描述
我正在尝试向我的页面之一添加手风琴控件.
以下是代码:
< form id ="form1" runat ="server">
< asp: ScriptManager ID ="ScriptManager1" runat =服务器">
< cc1:Accordion ID ="Accordion1" runat ="server">
<窗格>
< cc1: AccordionPane ID ="AccordionPane1" runat ="server">
</form>
但我遇到此错误:发生.
集合已修改;枚举操作可能无法执行
在此错误上进行搜索,但似乎没有任何结果与我的问题有关.有人可以告诉我我做错了什么吗?
谢谢
Lonnie
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">
<panes>
<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
推荐答案
您似乎丢失了< ;%@注册Assembly ="AjaxControlToolkit"命名空间="AjaxControlToolkit" TagPrefix ="ajaxToolkit">.
另外,请确保已在项目中包含AjaxControlToolkit的DLL.您也可以签出
链接有关解决AJAX问题的一些提示
希望这对您有帮助...:)
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... :)
为手风琴标题和内容添加CSS类.
然后错误就会消失.....
:) :) :)
Add CSS class for accordion header and content.
then error will dissapear.....
:) :) :)
确保已包含< cc1:Accordion ID ="Accordion1" runat ="server的SelectedIndex =" 0属性>
并且在Accordian标签中,我们应该至少实现了3个属性以及id,runat属性
希望这对您有帮助...
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...
这篇关于AJAX中的Accordian控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!