title: Repeater Control disable a button
body: <p>I have a repeater (named <code>list_user</code>) which contains fields (<code>id_user</code>, <code>name</code>, <code>mail</code>) and button <code>contact</code>. I want to perform a control that allows to disable the contact button for certain username
  Here is my code</p>
  
  <p>aspx: </p>
  
  <pre><code>   &lt;asp:Repeater ID="list_user" runat="server" OnItemDataBound="list_user_ItemDataBound1"&gt;
            &lt;HeaderTemplate&gt;
                &lt;table border="1" class="grid"&gt;
                    &lt;thead&gt;
                        &lt;tr&gt;
                            &lt;th&gt; Id user &lt;/th&gt;  
                            &lt;th&gt; username &lt;/th&gt;
                            &lt;th&gt; mail&lt;/th&gt;
                            &lt;th&gt; Contact&lt;/th&gt;                                                                    
                        &lt;/tr&gt;
                    &lt;/thead&gt;
                    &lt;tbody&gt;
                    &lt;/HeaderTemplate&gt;
                    &lt;ItemTemplate&gt;
                   &lt;tr&gt;
                       &lt;td&gt;&lt;asp:Label runat="server" ID="id_user" Text='&lt;%# Eval("iduser")%&gt;'&gt;&lt;/asp:Label&gt;&lt;/td&gt;    
                       &lt;td&gt;&lt;asp:Label runat="server" ID="username" Text='&lt;%# Eval("name")%&gt;' &gt;&lt;/asp:Label&gt;&lt;/td&gt; 
                       &lt;td&gt;&lt;asp:Label runat="server" ID="mail" Text='&lt;%# Eval("mail_adress")%&gt;'&gt;&lt;/asp:Label&gt;&lt;/td&gt;                                                
                      &lt;td&gt;&lt;asp:Button runat="server" ID="contact" Text="contact_user" OnClick="contact_Click1"/&gt;&lt;/td&gt;
                    &lt;/ItemTemplate&gt;
                       &lt;FooterTemplate&gt;  
                        .....
  </code></pre>
  
  <p>Code Behind in c#</p>
  
  <pre><code>protected void list_user_ItemDataBound1(object sender, RepeaterItemEventArgs e)
  {
      if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
      {
  
          Label nom = (System.Web.UI.WebControls.Label)e.Item.FindControl("username") as System.Web.UI.WebControls.Label;
          System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)e.Item.FindControl("contact") as System.Web.UI.WebControls.Button;               
          if (nom.Text == "alex")
          { btn.Enabled = true; }
          else
          { btn.Enabled = false; }
      }
  </code></pre>
  
  <p>but nothing happens to the display</p>