Hi
I have made a web page in which there is login screen when user login it goes next page
but my problem is if i directly enter the url of that page it open
i want it should not open unless the user log in
After Login you must store UserName in Session variable
Session["User"] = txtUserName.Text;
Now all pages put following checking in page load event
if (Session["User"] == null) { Response.Redirect("Login.aspx"); }
© COPYRIGHT 2023 ASPSnippets.com ALL RIGHTS RESERVED.