i do have many pages in my website
how should i check in every page whether the user is logged in or not
If you are using login control then to check whether user is logged in or not you can use
if(this.Page.User.Identity.IsAuthenticated) { //Logged In } else { //Not Logged in }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.