listview problem
<p>How to check if an a field is not empty, and show a link?<br>
i tried something like this but i get error.    </p>

<pre><code>&lt;asp:ListView ID="ListView1" runat="server"&gt;
&lt;LayoutTemplate&gt;
    &lt;asp:PlaceHolder ID="itemPlaceholder" runat="server"&gt;&lt;/asp:PlaceHolder&gt;
&lt;/LayoutTemplate&gt;
&lt;ItemTemplate&gt;
    &lt;h2&gt;&lt;%#Eval("NC_Title") %&gt;&lt;/h2&gt;
    &lt;%#Eval("NC_StartDate") %&gt;
    &lt;p&gt;&lt;%#Eval("NC_Abstract") %&gt;&lt;/p&gt;
    &lt;%if(Eval("NC_Description").ToString().Length &gt; 0)
      {
          %&gt;&lt;a href=""&gt;Read more...&lt;/a&gt;&lt;%
      }%&gt;

&lt;/ItemTemplate&gt;
&lt;/asp:ListView&gt;
</code></pre>
