Eval for array with some conditional
<p>How can i use Eval for array in ASP.NET WebPAge?</p>

<p>I want write something like <code>&lt;%# Eval(Images.First().SmallImageUrl) %&gt;</code> or </p>

<pre><code>&lt;%# Eval(Images.SingleOrDefault(x =&gt; x.IsMainIMage).SmallImageUrl) %&gt;
</code></pre>

<p>Here is code example:</p>

<pre><code>&lt;asp:Repeater ID="GoodsRepeater" runat="server"&gt;

              &lt;HeaderTemplate&gt;
              &lt;/HeaderTemplate&gt;

              &lt;ItemTemplate&gt;

               &lt;div class="&lt;%# (Container.ItemIndex % 2)!=0 ? "GoodItemTdEven" : "GoodItemTdOdd" %&gt;"&gt;   

                 &lt;asp:Image ID="Image1" ImageUrl='&lt;%# "/" + Eval("GoodsImages.First().SmallImageUrl") %&gt;' AlternateText='&lt;%# Eval("Name") %&gt;'  runat="server" /&gt;

                 &lt;div class="GoodItemDescriptionDiv" &gt;

                   &lt;asp:HyperLink CssClass="GoodItemNameText"  NavigateUrl='&lt;%# "~/Pages/Main/Catalog.aspx?productId=" +  Eval("Id") %&gt;' Text='&lt;%# Eval("Name") %&gt;' runat="server" /&gt;
                   &lt;%--&lt;span class="GoodItemNameText"&gt;  &lt;%# Eval("Name") %&gt; &lt;/span&gt; &lt;br /&gt; &lt;br /&gt;--%&gt;
                   &lt;span class="GoodItemDescriptionText" &gt; &lt;%# Eval("Description") %&gt; &lt;/span&gt; 
                   &lt;br /&gt;

                 &lt;/div&gt;


                &lt;/div&gt;

              &lt;/ItemTemplate&gt;

              &lt;FooterTemplate&gt;
              &lt;/FooterTemplate&gt;

          &lt;/asp:Repeater&gt;
</code></pre>

<p>I have an exception 'DataBinding: 'First()' is not a valid indexed expression.'</p>
