title: getting "Enumeration yielded no results" error in LINQ statement?
body: <p>I have a repeater inside a repeater. And I am binding inner repeater on parent repeater's <code>ItemDataBound</code> event with <code>myEventDetails list()</code>. And I am getting this <code>myEventDetails list()</code> inside <code>page_load</code>.</p>
  
  <p>So When I use the following linq query I am getting </p>
  
  <blockquote>
    <p>"Enumeration yielded no results"</p>
  </blockquote>
  
  <p>and inner repeater has empty values.</p>
  
  <pre><code>protected void parentRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
  {
  
          Repeater inner = (Repeater)(e.Item.FindControl("innerRepeater"));
  
  
          var allEvents = from x in myEventDetails
                     where x.event_name == "test"
                     select new
                     {
                         EventName = x.event_name,
                         EventID = x.event_id
                     };
  
          inner.DataSource = allEvents;
          inner.DataBind();
      }
  }
  </code></pre>
  
  <p>When I am debugging I am getting values in to the <code>myEventDetails list()</code>. So it is not empty.</p>
  
  <p>Thanks</p>