hey, change your link button event Onclick in to OnClientClick and change the return statement code.
<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" OnClientClick="return Javascript:confirm(' Are you sure you want to Logout?')">Logout</asp:LinkButton>