can't access controls inside <% %> (code tags) inside repeater's ItemTemplate
<p>without the repeater this works, but writing this inside repeater it's just compile error</p>

<pre><code>&lt;asp:Repeater runat="server" ID="rep1"&gt;
    &lt;ItemTemplate&gt;
      &lt;li&gt;
          &lt;o:TextBox runat="server" ID="txtLastName" /&gt;
&lt;% 
//this doesn't works outside of the repeater but here it doesn't
txtName.Text = txtLastName.ClientID;
%&gt;                               
          &lt;o:TextBox runat="server" ID="txtName"  /&gt;
       &lt;/li&gt;
     &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>
