May i know How to display username upon successfully logged in and cannot go back to page upon successfully logged out in asp.net? thank you very much in advance!
Then all you need to do is double click btnLogout to edit the code and just put Session("user") = ""(which sets the sessions to nothing) then Session.Abandon, then set what you made false to true and run your application. This is just the basic concept of logging in and out with asp.net.
*Also this may not be the most secure way, but its very basic and easy to learn the concept of user authentication.
Multiple Login Pages - Multiple Login Pages?
How To Display Detailview Based On Log In User..