title: User Control Inside Repeater
body: <p>I have a UserControl inside a repeater. The repeater's datasource is from SQL Server. </p>
  
  <p>User Control's .cs - MoviePanel.ascx.cs:</p>
  
  <hr/>
  
  <pre><code>public int myMovieID { get; set; }
  public string myMovieName { get; set; }
  public string myMovieDescription { get; set; }
  
  protected void Page_Load(object sender, EventArgs e)
  {
     MovieIDLbl.Text = myMovieID.ToString();
     MovieNameLbl.Text = myMovieName;
     DescriptionLbl.Text = myMovieDescription;
  }
  </code></pre>
  
  <p>ASPX Page:</p>
  
  <hr/>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" DataSourceID="ListOfMoviesDS" runat="server"&gt;
      &lt;ItemTemplate&gt;
          &lt;uc1:MovieDetailPanel runat="server" myMovieID='&lt;%# Eval("MovieID") %&gt;' 
             myMovieName='&lt;%# Eval("movieName") %&gt;' 
                  myMovieDescription='&lt;%# Eval("movieDescription") %&gt;' 
                  id="MovieDetailPanel1" /&gt;
  
          &lt;asp:Label ID="Label1" runat="server" 
                Text='&lt;%# Eval("MovieID") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;asp:Label ID="Label2" runat="server" 
                Text='&lt;%# Eval("movieName") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;asp:Label ID="Label3" runat="server" 
               Text='&lt;%# Eval("movieDescription") %&gt;'&gt;&lt;/asp:Label&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>Here something very strange happens. The values are not getting passed to the UserControl. However, if I place Labels below the usercontrol and set text with <code>Eval()</code> it works. You might think the usercontrol might be the problem. But if I manually type something, say in place of <code>&lt;%# Eval("movieName") %&gt;</code> it gets passed to the user control and gets displayed. </p>
  
  <p>I have NO CLUE! If the problem is with Eval() Labels should not get the text as well. Or if the problem is with the UserControl my manual text shouldn't get passed. I have no idea why Eval()'s values is not reaching the UserControl. </p>