Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         m_framesetHelper = new FramesetHelper();
         m_framesetHelper.ProcessPageLoad(PStore, ProcessViewParameter, ProcessAttemptIdParameter, ProcessViewRequest);
     }
     catch (System.Threading.ThreadAbortException)
     {
         // Do nothing
     }
     catch (FileNotFoundException)
     {
         Response.StatusCode        = 404;
         Response.StatusDescription = "Not Found";
     }
     catch (System.Web.HttpException)
     {
         // Something wrong with the http connection, so in this case do not set the response
         // headers.
         RegisterError(IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableTitleHtml"), IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableHtml"), false);
     }
     catch (Exception)
     {
         // Doesn't matter why.
         Response.StatusCode        = 500;
         Response.StatusDescription = "Internal Server Error";
         RegisterError(IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableTitleHtml"), IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableHtml"), false);
     }
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

                m_framesetHelper = new FramesetHelper();
                m_framesetHelper.ProcessPageLoad(PStore, ProcessViewParameter, ProcessAttemptIdParameter, ProcessViewRequest);
            }
            catch (System.Threading.ThreadAbortException)
            {
                // Do nothing
            }
            catch (FileNotFoundException)
            {
                Response.StatusCode = 404;
                Response.StatusDescription = "Not Found";
            }
            catch (System.Web.HttpException)
            {
                // Something wrong with the http connection, so in this case do not set the response
                // headers.
                RegisterError(IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableTitleHtml"), IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableHtml"), false);
            }
            catch (Exception)
            {
                // Doesn't matter why.
                Response.StatusCode = 500;
                Response.StatusDescription = "Internal Server Error";
                RegisterError(IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableTitleHtml"), IUDICO.TestingSystem.Localization.getMessage("FRM_NotAvailableHtml"), false);
            }
        }