Repeater data required from item template
<pre><code>&lt;asp:Repeater ID="rpChat" runat="server" OnItemDataBound="rpChat_ItemDataBound" OnItemCommand="rpChat_ItemCommand"&gt;
    &lt;ItemTemplate&gt;
        &lt;div id="divChatWindow" title='&lt;%# Eval("Username2") %&gt;' runat="server" class="clChatWindow"&gt;
            &lt;div&gt;
            &lt;img src="../../Menu/close.jpg" onclick="HideDiv(this)" style="float: right; width: 20px;
                    height: 20px;" /&gt;&lt;/div&gt;
            &lt;span class="chatText"&gt;
            &lt;/span&gt;
            &lt;asp:TextBox ID="txtChatMessage" runat="server" Width="115px"&gt;&lt;/asp:TextBox&gt;
            &lt;asp:LinkButton ID="btnSendChat" runat="server" CommandName="Insert"
                CommandArgument='&lt;%# Eval("Username2") %&gt;'&gt;Send&lt;/asp:LinkButton&gt;
        &lt;/div&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>How do I get the txtChatMessage text when I click on LinkButton btnSendChat in code behind </p>
