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