protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); //string tmp_scr = "if (Override_DoPostBack != null) { Override_DoPostBack()}"; // this.ClientScript.RegisterStartupScript(this.GetType(), "dopostback", "<script language=javascript>" + tmp_scr + "</script>"); OP_User user_br = new OP_User(this.BSWSession.SessionID, this.BSWSession.UserID); //check the operation id if (Operation_ID > 0) { if (!IsUserAllowed(Operation_ID)) { Set_Message_On_Another_Page("NOT AUTHORIZED", CommonUtilities.BaseURL(this) + mDashboardPage, true); } } }
protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); try { gIsPopup = false; if (Convert.ToBoolean(this.DecryptQueryString(Request.QueryString["value"], "Popup"))) { gIsPopup = true; MasterPageFile = CommonUtilities.BaseURL(Request) + "General_Plain.Master"; } } catch { } try { gPopupDataType = this.DecryptQueryString(Request.QueryString["value"], "POPUPDATATYPE"); } catch { } }
public void GotoDefaultPage(string iMessage) { string gotoPage = null; if (string.IsNullOrEmpty(mDefaultPage)) { gotoPage = CommonUtilities.BaseURL(this) + mDashboardPage; } else { gotoPage = mDefaultPage; } if (!string.IsNullOrEmpty(iMessage)) { gotoPage += EncryptQueryString("Message=" + iMessage); } gotoPage = CommonUtilities.BaseURL(this.Request) + gotoPage; Response.Redirect(AppendCacheBusterToURL(gotoPage)); }
public void ThrowNotAuthorized() { Set_Message_On_Another_Page("NOT AUTHORIZED", CommonUtilities.BaseURL(this) + mDashboardPage, true); }