Conditional image path using Eval
<p>I have two images progress.png and completed.png. Depending on the status in the db table (In Progress of Complete), I want to display the appropriate image. What is the correct syntax for the IIF() statement within asp.net? Thanks for your help.</p>

<pre><code>pseudocode:

&lt;asp:image ImageUrl='&lt;%# IIF(Eval("Status").Equals("In Progress")
display - 'images/progress.png') 
else if status equals "Complete"
display - 'images/complete.png' %&gt;' /&gt;
</code></pre>
