Obout 组合框事件仅在页面加载时触发
我的页面上有以下 obout 控件:
<cc1:ComboBox ID="ActivityTypeComboBox" runat="server" Width="100" AllowEdit="False">
<ClientSideEvents OnSelectedIndexChanged="alert('x')" OnItemClick="alert('y')" />
</cc1:ComboBox>
当页面首次加载时,两个 ClientSideEvent 都会触发,但在我实际执行事件之后不会触发。
知道为什么或者我错过了什么或做错了什么吗?
谢谢!
I have the following obout control on my page:
<cc1:ComboBox ID="ActivityTypeComboBox" runat="server" Width="100" AllowEdit="False">
<ClientSideEvents OnSelectedIndexChanged="alert('x')" OnItemClick="alert('y')" />
</cc1:ComboBox>
Both of the ClientSideEvents fire when the page first loads but not after that when I actually do the events.
Any idea why or what I am missing or doing wrong?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道“Obout”控件,但至少对于 Infragistics 控件来说,
ClientSideEvents
仅包含函数名称,而不是实际的 JavaScript 代码。如果我是正确的,你必须这样做:
然后在 JS 中:
JS 函数也可能从控件中获取一些附加参数,但你必须查阅相关文档。
Don't know about "Obout" controls, but at least for Infragistics ones the
ClientSideEvents
only contain the function names, not actual JavaScript code.If I'm correct, you'd have to do something like this:
Then in JS:
The JS functions might also get some additional parameters from the control, but you'd have to consult the documentation for that.