On the datalist, wire up the OnClientClick event of the LinkButton in your datalist to a javascript method that can accept the id of the button that you clicked. Then you can display the text of the link button using the innerText property of the link button.
<asp:LinkButton ID="lnkButton" runat="server" Text="OK" OnClientClick='<%# "MyFunction('" + lnkButton.ClientID + "')" %>' />
In your javascript method,
<script type="text/javascript">
function MyFunction(id)
{
alert(document.getElementById(id).innerText);
}
</script>
Hope this helps.