Setting ID to a control inside repeater itemtemplate
<p>Inside repeater's itemtemplate I have a Panel server control.<br>
I need to assign special Id for it, because I need to work with some javascript functions that use this Id.  </p>

<p>In repeater ItemDataBound event I have this:</p>

<pre><code>pnlButtonsPanel.ID = pnlButtonsPanel.ID + DataBinder.Eval(e.Item.DataItem, "ID");
</code></pre>

<p>But this solution is not good because after a postback the page is re -rendered and I lose the new ID. (And I don't want to rebind repeater after every postback)</p>

<p>I tried to set the ID on aspx page like that:</p>

<pre><code>&lt;asp:Panel id='&lt;%# Eval("ID") %&gt;'
</code></pre>

<p>and some other variations but always get  compile errors.</p>
