ASP.Net 多视图和JQuery 手风琴
我有一个 jQuery 手风琴在 ASP.Net MultiView 中运行。
如果放置在第一个视图上,它可以正常工作,但是当更改为带有手风琴的另一个视图时,它就无法工作。
在 Firebug 中查看,代码都在那里,样式等等......甚至悬停在上面也有效。单击标题时只是没有手风琴行为。
我做错了什么。
我唯一能想到的就是使用 ASP.Net Accordion Ajax 控件,但这会让我伤心。
I have a jQuery accordion running inside an ASP.Net MultiView.
It works fine if placed on the first view, however when changing to another view with the accordion on it fails to work.
Looking in Firebug the code is all there, the styles etc... even the hover over works. Just no accordion behavior when clicking headings.
What am I doing wrong.
Only thing i can think of is to use the ASP.Net Accordion Ajax control, however that would make me sad.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜问题是更新面板或 ajax 请求,当您更改步骤时,jquery 绑定会丢失。您可以使用
endRequest
事件重新绑定手风琴。有关
endRequest
http://msdn.microsoft. com/en-us/library/bb383810.aspxI guess the problem is update panel or ajax request, when you change the step jquery bindings are lost. You can use
endRequest
event to rebind the accordion.more details about
endRequest
http://msdn.microsoft.com/en-us/library/bb383810.aspx