Files
thinkyu/報到系統/Forms/RoleManage.aspx.cs
T
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

23 lines
579 B
C#

using System;
using System.Web.UI;
namespace 報到系統.Forms
{
public partial class RoleManage : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// 檢查是否為系統管理員
if (Session[PublicVariable.IsSystemManager] == null ||
!(bool)Session[PublicVariable.IsSystemManager])
{
Response.Redirect("~/Forms/Home.aspx");
return;
}
}
}
}
}