在 ASP.NET AjaxToolkit 中捕获 Accordion 控件的 SelectedIndexChanged 事件
我有一个动态填充的 Accordion 控件。我想捕获单击打开新窗格时引发的事件。我根本看不到该事件的智能感知,当我手动编码时,无论如何我都会收到错误。
有什么办法可以捕捉到这个事件吗?
目标是让母版页中保存 Accordion 的控件知道 Accordion 何时发生更改,以便它可以更新另一个控件。
I have an Accordion control that is populated dynamically. I want to catch the event raised when a new pane is clicked on to open. I don't see the event at all in intelli-sense and when I code it by hand anyways I get errors.
Is there any way to catch this event?
The goal is to let a control in the masterpage that is holding the Accordion know when the Accordion has changed so it can update another control.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
处理客户端
selectedIndexChanged
事件:像往常一样,您可以使用 匿名函数:
To handle the client-side
selectedIndexChanged
event:As usual, you can define and register the handler at the same time using an anonymous function: