title: How come FindControl can find a control that doesn't belong to current table row?
body: <p>I have a table. I need to find all the DropDownList controls in the table. I wrote following code to iterate the table rows to find DropDownList controls. How come in each loop, I could find the DropDownList, even I only have on in row 4?</p>
  
  <pre><code>    for (int i = 0; i &lt; table1.Rows.Count; i++)
                  {                
                      foreach (string UserID in UserIDs)
                      {
                          string ddlID = "ddlEditings" + UserID;
                          DropDownList ddl = (DropDownList)table1.Rows[i].FindControl(ddlID);
                          if (ddl != null)
                          {
                              if (!updateableUsers.ContainsKey(Int32.Parse(UserID)))
                                  updateableUsers.Add(Int32.Parse(UserID), Int32.Parse(ddl.SelectedValue));
                          }
  
                      }
                  }
  </code></pre>
  
  <p>Markup</p>
  
  <pre><code>    &lt;table id="ctl00_ContentPlaceHolder1_table1" border="1" width="100%"&gt;
              &lt;tr&gt;
                  &lt;td align="center" width="100%" colspan="3" bgcolor="#C0C0C0"&gt;&lt;br /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="center" width="7%" bgcolor="#C0C0C0"&gt;&lt;/td&gt;
                  &lt;td align="center" width="50%" bgcolor="#CCE6FF"&gt;User Name&lt;/td&gt;
  
                  &lt;td align="center" width="43%" bgcolor="#CCE6FF"&gt;Editing Privileges&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="center" width="7%" bgcolor="#C0C0C0"&gt;&lt;/td&gt;
                  &lt;td width="50%" bgcolor="#CCE6FF"&gt;Ferguson, Gene&lt;/td&gt;
                  &lt;td align="left" width="43%" bgcolor="#CCE6FF"&gt;functional manager&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td align="center" width="7%" bgcolor="#C0C0C0"&gt;&lt;input type="submit" name="ctl00$ContentPlaceHolder1$btnDelete5439" value="Delete" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$ContentPlaceHolder1$btnDelete5439&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="ctl00_ContentPlaceHolder1_btnDelete5439" /&gt;&lt;/td&gt;
                  &lt;td width="50%" bgcolor="#CCE6FF"&gt;Lento, Jackie&lt;/td&gt;
                  &lt;td align="left" width="43%" bgcolor="#CCE6FF"&gt;&lt;select name="ctl00$ContentPlaceHolder1$ddlEditings5439" id="ctl00_ContentPlaceHolder1_ddlEditings5439"&gt;
                      &lt;option selected="selected" value="2"&gt;comments only&lt;/option&gt;
                      &lt;option value="1"&gt;view&lt;/option&gt;
  
                  &lt;/select&gt;&lt;/td&gt;
  
              &lt;/tr&gt;
              &lt;tr bgcolor="#C0C0C0"&gt;
                  &lt;td width="100%" align="center" colspan="3"&gt;&lt;input type="submit" name="ctl00$ContentPlaceHolder1$btnSubmit" value="Update" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$ContentPlaceHolder1$btnSubmit&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="ctl00_ContentPlaceHolder1_btnSubmit" /&gt;&lt;input type="submit" name="ctl00$ContentPlaceHolder1$btnReset" value="Reset" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$ContentPlaceHolder1$btnReset&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="ctl00_ContentPlaceHolder1_btnReset" /&gt;&lt;br /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>