Posted on: 5/22/2011 7:42:51 PM | Views : 1427

Hi.. I would like to prevent user to access the page by typing URL before login. I place the codes in login page load. but i can't run login page. Instead it runs the unauthorised page..
 
   if (Session["StaffID"] != null)
        {
            Response.Redirect("Admin_StaffCreate.aspx");
        }

        else
        {
            Response.Redirect("unauthorised.aspx");

        }
 
Thanks.
...

Go to the complete details ...