Hi,
Add this as your Link Button.
<asp:LinkButton ID="LinkButtonTest" runat="server"
OnClientClick="javascript:alert('Hi');" onclick="LinkButtonTest_Click">Testing
and this as your code behind.
protected void LinkButtonTest_Click(object sender, EventArgs e){
}
you can add a javascript function in OnClientClick event to show any message.