can you give me brief description of the error which occurred when clicking the
link button.
for instance try the following:
Make sure the link button is placed inside the
form tag with runat="server" placed in form tag
ie.,
<form name="xyz" runat="server">
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Logout</asp:LinkButton>
</form>