Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                this.mHelper = new ChangeActivityHelper(this.Request, this.Response);
                this.mHelper.ProcessPageLoad(
                    this.ProcessViewParameter,
                    this.ProcessAttemptIdParameter,
                    this.TryGetActivityId,
                    this.RegisterError,
                    this.GetErrorInfo,
                    this.GetMessage);
                this.mPageLoadSuccessful = (!this.HasError);
            }
            catch (Exception e2)
            {
                this.RegisterError(
                    ResHelper.GetMessage(Localization.GetMessage("FRM_UnknownExceptionTitle")),
                    ResHelper.GetMessage(Localization.GetMessage("FRM_UnknownExceptionMsg"), HttpUtility.HtmlEncode(e2.Message)),
                    false);
                this.mPageLoadSuccessful = false;

                // Clear any existing response information so that the error gets rendered correctly.
                this.Response.Clear();
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                this.mHelper = new ChangeActivityHelper(this.Request, this.Response);
                this.mHelper.ProcessPageLoad(
                    this.ProcessViewParameter,
                    this.ProcessAttemptIdParameter,
                    this.TryGetActivityId,
                    this.RegisterError,
                    this.GetErrorInfo,
                    this.GetMessage);
                this.mPageLoadSuccessful = (!this.HasError);
            }
            catch (Exception e2)
            {
                this.RegisterError(
                     ResHelper.GetMessage(Localization.GetMessage("FRM_UnknownExceptionTitle")),
                     ResHelper.GetMessage(Localization.GetMessage("FRM_UnknownExceptionMsg"), HttpUtility.HtmlEncode(e2.Message)),
                     false);
                this.mPageLoadSuccessful = false;

                // Clear any existing response information so that the error gets rendered correctly.
                this.Response.Clear();
            }
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                m_helper = new ChangeActivityHelper(Request, Response);
                m_helper.ProcessPageLoad(ProcessViewParameter,
                                         ProcessAttemptIdParameter,
                                         TryGetActivityId,
                                         RegisterError,
                                         GetErrorInfo,
                                         GetMessage);
                m_pageLoadSuccessful = (!HasError);
            }
            catch (Exception e2)
            {
                RegisterError(ResHelper.GetMessage(FramesetResources.FRM_UnknownExceptionTitle),
                              ResHelper.GetMessage(FramesetResources.FRM_UnknownExceptionMsg, HttpUtility.HtmlEncode(e2.Message)), false);
                m_pageLoadSuccessful = false;

                // Clear any existing response information so that the error gets rendered correctly.
                Response.Clear();
            }
        }