1
我有一个实体我从Title(nvarchar(256)),Popularity(int)和Type(int)拉三列。然后,我试图在radiobuttonlist上使用QueryExtender,以允许最终用户筛选出除特定结果以外的所有结果,但我一直收到“参数类型不匹配”错误。这里是实际的代码:参数类型不匹配QueryExtender
<asp:QueryExtender ID="QueryExtender1" runat="server" TargetControlID="EntityDataSource1">
<asp:SearchExpression DataFields="Type" SearchType="StartsWith">
<asp:ControlParameter ControlID="rblTypes" PropertyName="SelectedValue" />
</asp:SearchExpression>
</asp:QueryExtender>
<asp:RadioButtonList ID="rblTypes" runat="server" AutoPostBack="True"
RepeatColumns="5" RepeatDirection="Horizontal">
<asp:ListItem Value="1">Active Inside</asp:ListItem>
<asp:ListItem Value="2">Semi-Active Inside</asp:ListItem>
<asp:ListItem Value="3">Inactive Inside</asp:ListItem>
<asp:ListItem Value="4">Chair Game</asp:ListItem>
<asp:ListItem Value="5">Active Outside</asp:ListItem>
<asp:ListItem Value="6">Semi-Active Outside</asp:ListItem>
<asp:ListItem Value="7">Inactive Outside</asp:ListItem>
<asp:ListItem Value="8">Water Game</asp:ListItem>
<asp:ListItem Value="9">Messy Game</asp:ListItem>
<asp:ListItem Value="10">Trick</asp:ListItem>
</asp:RadioButtonList>
有什么建议吗?
是啊,我猜是相同的。不幸的是,我尝试了你的建议,也没有奏效。 :( – davemackey 2011-05-03 13:23:45
@dave:我有一个新理论;)看我的编辑... – Slauma 2011-05-03 14:06:07