If statement in repeater
<p>I have <a href="http://stackoverflow.com/questions/4213594/iterate-through-repeater">this</a> repeater on my page..Under the default column what I want is that there
 should be an IF condition that checks my table's "IsDEfault" field value. 
If IsDefault=True then the lable below "label1" ie "Yes" should be
displayed inside the repeater else "Make DEfault" link should be displayed..</p>

<p>Now how do I include this IF statement as inline code in my repeater to accomplish what I want ?</p>

<pre><code>&lt;asp:LinkButton ID="lnk1" Text="Make Default" CommandName="SetDefault" runat="server" Visible="True" CommandArgument='&lt;%#Eval("UserID") %&gt;' CausesValidation="false"&gt;&lt;/asp:LinkButton&gt;

&lt;asp:Label ID="label1" Text="Yes" runat="server" Visible="False"&gt;&lt;/asp:Label&gt;
</code></pre>

<p>I have an idea :-</p>

<pre><code>&lt;%# If DataBinder.Eval(Container.DataItem,"IsDefault") = "True"
Then%&gt;
&lt;%End If%&gt;
</code></pre>

<p>How should I form the "Then" statement now? 
Please help me with the proper syntax..thnx
Do I need to like make a method that checks if "IsDefault" is true or not and  then call it inside of inline code in my repeater ? How do I go about it ?</p>

<p>[EDIT]</p>

<p>I tried as follows:-</p>

<pre><code>&lt;% If (Eval("Container.DataItem,"IsDefault"")="True"?

("&lt;asp:LinkButton ID="lnk1" Text="Set as Default" CommandName="SetDefault1" runat="server" CommandArgument='&lt;%#Eval("User1ID") %&gt;'
CausesValidation="false" Visible=true&gt;&lt;/asp:LinkButton&gt;") : ("&lt;asp:Label ID="label1" Text="Yes" runat="server" Visible=true&gt;&lt;/asp:Label&gt;")
)%&gt;
</code></pre>

<p>didnt work :( Help!!</p>
