script defer 頁面教本輸出執行

輸出刷新 

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();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章