Get databasevalue from Repeater asp.net
<p>I am using a Repeater to get items from the database.</p>

<p>I place every item into the web user control page, with this code:</p>

<pre><code>&lt;%#DataBinder.Eval(Container.DataItem, "XXXX")%&gt;
</code></pre>

<p>XXXX = attribute from the database, for example: Username.</p>

<p>In the .cs file of the web user control page, I want to get the ID(which is also in the database) from every single repeated element, any clue how I can do that?</p>

<p>For example:</p>

<p>The <code>&lt;%#DataBinder.Eval(Container.DataItem, "Username")%&gt;</code> is showing the username of every person who is in the database. And in the .cs-file I want to get the ID of that username. So I can use a SQL-query like this when a button is clicked next to that repeated username:</p>

<pre><code>UPDATE Table SET Username = "Mike" WHERE ID = '" + #### + "'
</code></pre>

<p>I don't know what to write in place of the ####.</p>

<p>This: #### = ID from the repeated Username where the button is clicked.</p>

<p>Thanks in advance!</p>
