How to Set a Parameter for WhereParameters in EntityDataSource
<p>I have an EntityDataSource and I need set WHERE to a Local Variable Type: GUID.</p>

<p>My problem is I am not able to send my local variable Guid to EntityDataSource for a WHERE OPERATION.</p>

<p>I also tried to to use a ControlParameter<code>&lt;asp:ControlParameter Name="UserId" /&gt;</code> and have a Label with Text property on my Guid converted in String. But does not work.</p>

<p>Any idea how to solve teh matter</p>

<pre><code>   &lt;asp:EntityDataSource ID="EntityDataSourceListAuthors" runat="server" 
        AutoGenerateWhereClause="True" 
        ConnectionString="name=CmsConnectionStringEntityDataModel" 
        DefaultContainerName="CmsConnectionStringEntityDataModel" 
        EnableFlattening="False" EntitySetName="CmsAuthors" Where="" 
        EntityTypeFilter="" Select=""&gt;
        &lt;WhereParameters&gt;
            &lt;asp:Parameter Name="UserId" /&gt;
        &lt;/WhereParameters&gt;
    &lt;/asp:EntityDataSource&gt;
</code></pre>
