【发布时间】:2012-09-28 10:32:14
【问题描述】:
我想添加 Javascript 代码,以便在 asp.net 的下拉列表中更改所选索引时触发。
所以,这是我的 DDL:
<asp:DropDownList ID="comboReportTypes" runat="server" />
我想在上面的 DDL 中添加类似这样的内容:onSelectionIndexChanged="MyJavascriptFuntion(this)"
所以我想以这样的方式结束:
<asp:DropDownList ID="comboReportTypes" runat="server" onSelectionIndexChanged="MyJavascriptFuntion(this)" />
这可能吗?
提前致谢。我正在使用 ASP.Net 4.0
【问题讨论】:
标签: javascript selectedindexchanged