Reputation: 758
I have a strange error when I try to change my website . I got always the same error
WhereParameters
cannot be specified unlessAutoGenerateWhere == true
or Where is specified.
I already checked out my EntityDataSource it should be ok. There is no typical parameter error where the name has a @ in front
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=HolidayTrackerEntities" DefaultContainerName="HolidayTrackerEntities"
EnableFlattening="False" EntitySetName="PublicVacations" Where="it.BusinessUnitId == @BusinessUnitId">
<WhereParameters>
<asp:SessionParameter DbType="Int32" SessionField="BusinessUnitId" Name="BusinessUnitId" />
</WhereParameters>
</asp:EntityDataSource>
I get the same message after Rebuild, Clean...
Thanks for help and fast answer
Upvotes: 4
Views: 1870
Reputation: 2901
For the Telerik RadGrid, this can be caused by the AllowFilteringByColumn="true"
setting. If you need custom filtering in addition to a default Where
control clause, you can see the demo here from Rosen in the forum post.
Upvotes: 1
Reputation:
My be you should adda AutoGenerateWhereClause = "true" i hope it help
Upvotes: 2