IE浏览器提示错误如下:
...
[ArgumentOutOfRangeException: 'd3' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value]
...代码如下:
<asp:DropDownList ID ="d3" runat="server" AppendDataBoundItems="True" Width="90px" SelectedValue='<%#Eval("jx").ToString().Trim() %>'>
<asp:ListItem Value="">请选择机型</asp:ListItem>全部代码就这一处有用到一个d3的地方,每次运行程序,添加数据,在选择机型的时候正常,在点编辑数据的时候,就出现了IE浏览器提示的错误。
...
[ArgumentOutOfRangeException: 'd3' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value]
...代码如下:
<asp:DropDownList ID ="d3" runat="server" AppendDataBoundItems="True" Width="90px" SelectedValue='<%#Eval("jx").ToString().Trim() %>'>
<asp:ListItem Value="">请选择机型</asp:ListItem>全部代码就这一处有用到一个d3的地方,每次运行程序,添加数据,在选择机型的时候正常,在点编辑数据的时候,就出现了IE浏览器提示的错误。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货