From 227c49d7f5742e6b13ae6e63c44213ceb404eb7c Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 27 Jan 2020 13:12:49 +0100 Subject: [PATCH] Custom error page --- Jenkinsfile | 2 +- NKC_WF/ErrorPages/Oops.aspx | 11 +++++++++++ NKC_WF/ErrorPages/Oops.aspx.cs | 17 ++++++++++++++++ NKC_WF/ErrorPages/Oops.aspx.designer.cs | 26 +++++++++++++++++++++++++ NKC_WF/NKC_WF.csproj | 8 ++++++++ NKC_WF/Web.config | 2 +- 6 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 NKC_WF/ErrorPages/Oops.aspx create mode 100644 NKC_WF/ErrorPages/Oops.aspx.cs create mode 100644 NKC_WF/ErrorPages/Oops.aspx.designer.cs diff --git a/Jenkinsfile b/Jenkinsfile index df141cd..868ed75 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=232']) { + withEnv(['NEXT_BUILD_NUMBER=233']) { // env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') diff --git a/NKC_WF/ErrorPages/Oops.aspx b/NKC_WF/ErrorPages/Oops.aspx new file mode 100644 index 0000000..f27fb05 --- /dev/null +++ b/NKC_WF/ErrorPages/Oops.aspx @@ -0,0 +1,11 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="Oops.aspx.cs" Inherits="NKC_WF.ErrorPages.Oops" %> + + +
+
+
+ Return to home page +
+
+
+
diff --git a/NKC_WF/ErrorPages/Oops.aspx.cs b/NKC_WF/ErrorPages/Oops.aspx.cs new file mode 100644 index 0000000..8d0b95c --- /dev/null +++ b/NKC_WF/ErrorPages/Oops.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.ErrorPages +{ + public partial class Oops : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/NKC_WF/ErrorPages/Oops.aspx.designer.cs b/NKC_WF/ErrorPages/Oops.aspx.designer.cs new file mode 100644 index 0000000..a49de20 --- /dev/null +++ b/NKC_WF/ErrorPages/Oops.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.ErrorPages +{ + + + public partial class Oops + { + + /// + /// Controllo hlDefault. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HyperLink hlDefault; + } +} diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index a15ddc2..d7156bf 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -249,6 +249,7 @@ SheetColor.css + @@ -511,6 +512,13 @@ Default.aspx + + Oops.aspx + ASPXCodeBehind + + + Oops.aspx + Home.aspx ASPXCodeBehind diff --git a/NKC_WF/Web.config b/NKC_WF/Web.config index e01b5be..1727c9d 100644 --- a/NKC_WF/Web.config +++ b/NKC_WF/Web.config @@ -35,7 +35,7 @@ - +