protected void Page_PreInit(object sender, EventArgs e) { if (Session["id"] == null) { this.MasterPageFile = "~/blank.master"; } else { ItemList = db.GetAllItemList(); } }