Im use to use an asp:button with this
Private Sub cmdSignOut_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSignOut.ServerClick
FormsAuthentication.SignOut()
FormsAuthentication.RedirectToLoginPage()
End Sub
But how can i use this event, so i can call it from an asp:linkbutton !?
Use the linkbutton’s
OnCommandproperty.I’m not sure how you’re storing the user’s id — you may need to change (or simply remove) the command argument and command name.