天天看點

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()");

繼續閱讀