using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using DSWeb.Models; using DSWeb.EntityDA; namespace DSWeb { public class OpenPageBase : System.Web.UI.Page { protected override void OnLoad(EventArgs e) { if (HttpContext.Current.Session["USERID"] == null) { if (Request.Cookies["DSUSERID"] != null) { } else { Response.Redirect("login.aspx"); Response.End(); } } base.OnLoad(e); } } }