using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; /// /// baseMasterPage 的摘要描述 /// public class baseMasterPage : System.Web.UI.MasterPage { public authPermission objAuth; public userdata objLoginUser; public baseMasterPage() { // // TODO: 在這裡新增建構函式邏輯 // this.Load += new EventHandler(this.Page_Load); } protected void Page_Load(object sender, EventArgs e) { objAuth = new authPermission(); //Response.Write(objAuth.isLogin().ToString()); if (objAuth.isLogin() == false) { //Response.Redirect("Login.html"); return; } objLoginUser = new userdata(objAuth.user_uid); } }