If your itemtemplate looks as
<ItemTemplate>
<asp:LinkButton id="lnkSelect" Text="Select"
CommandName="Select" runat="server" CommandArgument='<%# Eval("ID") %>'/>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ItemTemplate>
In your datalist item command
TextBox TextBox1 = (TextBox)e.Item.FindControl("TextBox1");
If(e.CommandName=="Select")
{
}