DropDownList 的OnSelectedIndexChanged事件在firefox中不触发
<tableborder="0"cellpadding="0"cellspacing="0"style="width:100%"><tr><tdalign="center...
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr >
<td align="center" >
<asp:Label ID="Label1" CssClass="font1" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<asp:HyperLink ID="start" runat="server" ForeColor="#000000">首 页</asp:HyperLink>
<asp:HyperLink ID="prev" runat="server" ForeColor="#000000"> 上一页</asp:HyperLink>
<asp:HyperLink ID="next" runat="server" ForeColor="#000000">下一页</asp:HyperLink>
<asp:HyperLink ID="max" runat="server" ForeColor="#000000">末 页</asp:HyperLink>
<span class="font1">转向</span>
<asp:DropDownList ID="iPage" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="iPage_SelectedIndexChanged" >
</asp:DropDownList>
<input id="chkall" type="checkbox" onclick="CheckAll(this.form)" style="border: 0" />全选
</td>
<td align="left" style="width: 50px">
</td>
<td align="center" style="width: 50px">
<asp:Button ID="Button2" runat="server" Text="删除" OnClientClick="return isExc()"
OnClick="Button2_Click" />
</td>
</tr>
</table>
以上代码是做分页用的,DropDownList 中存放的是页码,选择几就跳转到多少页。问题是 DropDownList的值改变 OnSelectedIndexChanged在firefox中根本没有触发,没有进iPage_SelectedIndexChanged方法。在ie和chrome下是好的,可以用,为什么在firefox下不行呢? 展开
<tr >
<td align="center" >
<asp:Label ID="Label1" CssClass="font1" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<asp:HyperLink ID="start" runat="server" ForeColor="#000000">首 页</asp:HyperLink>
<asp:HyperLink ID="prev" runat="server" ForeColor="#000000"> 上一页</asp:HyperLink>
<asp:HyperLink ID="next" runat="server" ForeColor="#000000">下一页</asp:HyperLink>
<asp:HyperLink ID="max" runat="server" ForeColor="#000000">末 页</asp:HyperLink>
<span class="font1">转向</span>
<asp:DropDownList ID="iPage" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="iPage_SelectedIndexChanged" >
</asp:DropDownList>
<input id="chkall" type="checkbox" onclick="CheckAll(this.form)" style="border: 0" />全选
</td>
<td align="left" style="width: 50px">
</td>
<td align="center" style="width: 50px">
<asp:Button ID="Button2" runat="server" Text="删除" OnClientClick="return isExc()"
OnClick="Button2_Click" />
</td>
</tr>
</table>
以上代码是做分页用的,DropDownList 中存放的是页码,选择几就跳转到多少页。问题是 DropDownList的值改变 OnSelectedIndexChanged在firefox中根本没有触发,没有进iPage_SelectedIndexChanged方法。在ie和chrome下是好的,可以用,为什么在firefox下不行呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询