title: using if with eval("") in asp.net
body: <p>I am using repeater to display the news on the news section. In my news section i have got 2 labels(title, Description) and one image field. Below is the code which i am using to populate the repeater:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptNews" runat="server"&gt;
  &lt;ItemTemplate&gt;
  &lt;asp:Image ID="newsImage" runat="server" ImageUrl='&lt;%#String.format("../Images/News/{0}", Eval("newsImage")) %&gt;' /&gt;
  &lt;asp:Label ID="newsTitle" runat="server" Text='&lt;%#Eval("newsTitle") %&gt;'&gt;&lt;/asp:Label&gt;
  &lt;br /&gt;
  &lt;asp:Label ID="newsDescription" runat="server" Text='&lt;%#Eval("newsDescription") %&gt;'&gt;&lt;/asp:Label&gt;
  &lt;br /&gt;
  &lt;div class="clear"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;/ItemTemplate&gt;
  
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>I want to use if statement with the  , for instance if the Eval("newsImage") is null then i want to disable the image control and just show the title and description of news . Any suggestions on how to acheive this.</p>