I have an EntityDataSource and I need to set WHERE for the local variable type: GUID.
My problem is that I cannot send my local Guid variable to EntityDataSource for WHERE OPERATION.
I also tried using ControlParameter <asp:ControlParameter Name="UserId" />and have the Label with Text property in my Guid converted to String. But does not work.
Any idea how to resolve the issue
<asp:EntityDataSource ID="EntityDataSourceListAuthors" runat="server"
AutoGenerateWhereClause="True"
ConnectionString="name=CmsConnectionStringEntityDataModel"
DefaultContainerName="CmsConnectionStringEntityDataModel"
EnableFlattening="False" EntitySetName="CmsAuthors" Where=""
EntityTypeFilter="" Select="">
<WhereParameters>
<asp:Parameter Name="UserId" />
</WhereParameters>
</asp:EntityDataSource>
source
share