I am using a function for logout of client in asp.net C# previously i was using asp.net button’s click event for calling it but now i want to call it from one of navigation menu item.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way to do this is to set a page that when requested logs the user out then redirects them to the login screen, that way you can create a simple static
<a href="#">to the page and it’ll work regardless of where you put it.You can actually reuse your existing Login page logic, but make the logout action be done by querystring. Like so:
In your LoginPage class:
HTH.