title: Can't find control in edit mode in DataList
body: <pre><code> private void BindDataList()
  {
          int userId = Convert.ToInt32(ProfileInfo.GetUserID());
          DataList1.DataSource = CatalogAccess.GetAddressByUserID(userId);
          DataList1.DataBind();
          foreach (DataListItem item in DataList1.Items)
          {
              Label lbl = (Label)item.FindControl("lbl");
              lbl.Text = "myLabel";
          }
      }
  
      protected void DataList1_EditCommand(object source, DataListCommandEventArgs e)
      {
          int userId = Convert.ToInt32(ProfileInfo.GetUserID());        
          DataList1.EditItemIndex = e.Item.ItemIndex;
          DataList1.DataSource = CatalogAccess.GetAddressByUserID(userId);
          DataList1.DataBind();
          Label lbl = (Label)e.Item.FindControl("lbl") as Label;
          lbl.Text = "edit mode";
      }
  
  &lt;asp:DataList ID="DataList1" runat="server" oneditcommand="DataList1_EditCommand" &gt;
          &lt;ItemTemplate&gt;
                      &lt;asp:Label ID="lblAddressID" runat="server" Text='&lt;%# Bind("addressID") %&gt;'/&gt;
                      &lt;asp:Label ID="lbl" runat="server" /&gt;
                      &lt;asp:Button runat="Server" ID="cmdEdit" CommandName="Edit" Text="Edit"/&gt; 
              &lt;/ItemTemplate&gt;            
              &lt;EditItemTemplate&gt;  
                      &lt;asp:TextBox ID="txtAddressID" runat="server" Text='&lt;%# Bind("addressID") %&gt;' BackColor="#FFFF66" /&gt;        
                      &lt;asp:Label ID="lbl" runat="server"/&gt;
                      &lt;asp:Button runat="Server" ID="cmdUpdate" CommandName="Update" Text="Update" /&gt;
                      &lt;asp:Button runat="Server" ID="cmdCancel" CommandName="Cancel" Text="Cancel"/&gt; 
              &lt;/EditItemTemplate&gt;
         &lt;/asp:DataList&gt;
  </code></pre>