首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > PowerDesigner >

DropDownList客户端添onchange事件

2012-06-20 
DropDownList客户端加onchange事件在后台绑定之前添加一个属性空间ID.Attributes.Add(onchange,js函数

DropDownList客户端加onchange事件

在后台绑定之前添加一个属性

空间ID.Attributes.Add("onchange","js函数");

如:ddlSubject.Attributes.Add("onchange","IsShow()");

前台:

<script type="text/javascript">
        function IsShow()
        {
          

        }

</script>

 

<asp:DropDownList ID="ddlSubject"  runat="server"  >
</asp:DropDownList>

热点排行