protected void somepage_load(... ...) { if(Session["UserSession"] == null) { Response.Redirect("~/login.aspx"); } else { // load the page } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)