title: passing a value from ListView to EntityDataSource
body: <p>I have this code, and I need the "it.MembershipOption.Id" value in the "where" clause to be the &lt;%# Eval("Id") %> from ListViewEventsOuter. I tried to add the Eval in the "where" clause but it throws an error.</p>
  
  <p>How is this done?</p>
  
  <pre><code>&lt;asp:ListView ID="ListViewEventsOuter" runat="server"&gt;
      &lt;ItemTemplate&gt;
          &lt;a name='&lt;%# Eval("Id") %&gt;'&gt;&lt;/a&gt;
          &lt;h3&gt;Events for &lt;%# Eval("Text")%&gt; members&lt;/h3&gt;
  
          &lt;asp:EntityDataSource ID="EntityDataSource1" runat="server" 
          ConnectionString="name=Entities" Include="EventType, MembershipOption" 
          DefaultContainerName="Entities" EntitySetName="Events" 
          EntityTypeFilter="" Select="" Where='it.Active == True &amp;&amp; it.MembershipOption.Id == [THIS VALUE TO COME FROM THE PREVIOUS ID IN LISTVIEW]'&gt;
          &lt;/asp:EntityDataSource&gt;
  
          &lt;asp:ListView ID="ListViewEventsInner" runat="server"&gt;
  
                ETC....
  </code></pre>