此文件添加在前台,调用无效。
< asp:DropDownList ID ="ddlPeos" runat ="server" CssClass ="glgg21" Width ="88px" onchange ="Redirect();" >
</ asp:DropDownList >
解决办法:将方法添加到后台。
this.ddlPeos.Attributes.Add("onchange","Redirect()");
此文件添加在前台,调用无效。
< asp:DropDownList ID ="ddlPeos" runat ="server" CssClass ="glgg21" Width ="88px" onchange ="Redirect();" >
</ asp:DropDownList >
解决办法:将方法添加到后台。
this.ddlPeos.Attributes.Add("onchange","Redirect()");