Condition in ASP Repeater
<p>I am trying to put a condition into my ASP repeater tag. I have a table being created and one of the td items is a link. The problem is I need to create a link upon checking the value in one the variable that is in the repeater container. Here is my code: </p>

<pre><code>&lt;td&gt;&lt;%#((VWApp.Code.TrackDM)Container.DataItem).CdNo%&gt;&lt;/td&gt;
&lt;td&gt;&lt;%#((VWApp.Code.TrackDM)Container.DataItem).ShippingNo%&gt;&lt;/td&gt;
</code></pre>

<p>Now i need to check the value of ShippingNo and rather than displaying it need to display a link. i tried to write an if condition like this:</p>

<pre><code>if(((VWApp.Code.TrackDM)Container.DataItem).ShippingNo. .. )
{
// do processing and generate a link that needs to displayed
}
</code></pre>

<p>But i get error when trying to do this. Can anybody guide me to the right way of doing this?</p>

<p>Any ideas and suggests are highly appreciated.</p>
