天天看点

DropDownList添加onchange()事件

此文件添加在前台,调用无效。

DropDownList添加onchange()事件

< asp:DropDownList  ID ="ddlPeos"  runat ="server"  CssClass ="glgg21"  Width ="88px"  onchange ="Redirect();" >

DropDownList添加onchange()事件

</ asp:DropDownList >

解决办法:将方法添加到后台。

this.ddlPeos.Attributes.Add("onchange","Redirect()");

继续阅读