輸出刷新
Response.Write("<script defer>location.reload();</script>");
回到上一頁
Response.Clear();
Response.Write("<script defer>window.alert('您沒有權限進入本頁!//n請重新登錄或與管理員聯繫');history.back();</script>");
Response.End();
退出回到某一頁
FormsAuthentication.SignOut();
Session.Clear();
Session.Abandon();
Response.Clear();
Response.Write("<script defer>window.alert('您沒有權限進入本頁或當前登錄用戶已過期!//n請重新登錄或與管理員聯繫!');parent.location='" + virtualPath + "/Login.aspx';</script>");
Response.End();