Need help with repeater
<p>This is my repeater:</p>

<pre><code>&lt;asp:Repeater ID="myRepeater" OnItemCommand="myRepeater_ItemCommand" runat="server" OnItemDataBound="myRepeater_OnItemDataBound"&gt;
     &lt;HeaderTemplate&gt;
         &lt;table width="99%" border="0" cellpadding="0" cellspacing="0"&gt;
             &lt;tr class="lgrey"&gt;
                &lt;td&gt;Default&lt;/td&gt;
             &lt;/tr&gt;
     &lt;/HeaderTemplate&gt;
     &lt;ItemTemplate&gt;
         &lt;table&gt;
             &lt;tr&gt;
                &lt;td&gt;
                    &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;
                &lt;/td&gt;
             &lt;/tr&gt;
     &lt;/ItemTemplate&gt;
     &lt;FooterTemplate&gt;
         &lt;/table&gt;
     &lt;/FooterTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>What I want is that when user clicks on any of 
the "lnk1" link button in the list that repeater renders, 
the link should be replaced with the label "label1"..
i.e. when the user clicks on "Make Default" link, it should be replaced with "Yes" label</p>

<p>Calling this method <code>obj.SetDefaultAddress();</code> is setting the default address in the DB alright..
problem is with the display of the label1 and lnk1 when the repeater renders...</p>

<p>what is happening is that BOTH "Make Default" LinkButton and the "YES" label are getting displayed 
under the "Default" column of the table inside my repeater.</p>

<p>I want some code that will check the "IsDefault" value in my DB and display "Make Default " link button</p>

<p>and "YES" label accordingly... i.e. if IsDefault's value in the DB is TRUE then "YES" should be displayed in the repeater
otherwise "Make Default"</p>
