此檔案添加在前台,調用無效。
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIml2ZuUmbv50LcNncvRXYjlGZul0ZulmbpxGd190LcdmbpRHanlGbodWaohXY05Wez9CX0Vmbu4GZzNmLzV2Zh1Wavw1LcpDc0RHaiojIsJye.gif)
< asp:DropDownList ID ="ddlPeos" runat ="server" CssClass ="glgg21" Width ="88px" onchange ="Redirect();" >
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIml2ZuUmbv50LcNncvRXYjlGZul0ZulmbpxGd190LcdmbpRHanlGbodWaohXY05Wez9CX0Vmbu4GZzNmLzV2Zh1Wavw1LcpDc0RHaiojIsJye.gif)
</ 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()");