C# Eval aspx Fun
<p>This works:</p>

<pre><code>&lt;asp:Label ID="asdf" runat="server" Text='&lt;%# Eval("Image1") %&gt;'&gt;&lt;/asp:Label&gt;
</code></pre>

<p>displaying data like:  L8_Pic_1.jpg</p>

<p>This doesn't:</p>

<pre><code>&lt;asp:Label ID="asdfaf111" runat="server" Text='&lt;%# Eval("Image1").ToString() %&gt;'&gt;&lt;/asp:Label&gt;
</code></pre>

<p>It gives an Object Reference not set to an instance of an object error</p>

<p>I'm aiming to do this:</p>

<pre><code>String.IsNullOrEmpty(Eval("Image1").ToString()) ? "noImage.jpg" : Eval("Image1")
</code></pre>
