diff --git a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt index 443d22e..7278b08 100644 --- a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt +++ b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt @@ -63,5 +63,6 @@ C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\bin\Debug\Newtonsoft.Json.xml C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\obj\Debug\CMS-SC-Data.csprojResolveAssemblyReference.cache C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\obj\Debug\CMS-SC-Data.csproj.CoreCompileInputs.cache +C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\obj\Debug\CMS-SC-Data.csproj.CopyComplete C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\obj\Debug\CMS-SC-Data.dll C:\Users\samuele.steamw\Documents\Visual Studio 2017\Projects\CMS-SC\CMS-SC-Data\obj\Debug\CMS-SC-Data.pdb diff --git a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csprojResolveAssemblyReference.cache b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csprojResolveAssemblyReference.cache index 802db75..ed8698a 100644 Binary files a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csprojResolveAssemblyReference.cache and b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csprojResolveAssemblyReference.cache differ diff --git a/CMS_SC/CMS_SC.csproj b/CMS_SC/CMS_SC.csproj index 80a8337..326f35b 100644 --- a/CMS_SC/CMS_SC.csproj +++ b/CMS_SC/CMS_SC.csproj @@ -363,6 +363,13 @@ + + + + + + Always + @@ -371,13 +378,6 @@ - - - - - - Always - @@ -1002,10 +1002,10 @@ - + - + 10.0 diff --git a/CMS_SC/Default.aspx b/CMS_SC/Default.aspx index 5dc4ce6..fc599d0 100644 --- a/CMS_SC/Default.aspx +++ b/CMS_SC/Default.aspx @@ -1,39 +1,39 @@ <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CMS_SC._Default" %> - -

We suggest the following:

-
    -
  1. -
    Getting Started
    - ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model. +

    We suggest the following:

    +
      +
    1. +
      Getting Started
      + ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model. A design surface and hundreds of controls and components let you rapidly build sophisticated, powerful UI-driven sites with data access. Learn more… -
    2. -
    3. -
      Add NuGet packages and jump-start your coding
      - NuGet makes it easy to install and update free libraries and tools. +
    4. +
    5. +
      Add NuGet packages and jump-start your coding
      + NuGet makes it easy to install and update free libraries and tools. Learn more… -
    6. -
    7. -
      Find Web Hosting
      - You can easily find a web hosting company that offers the right mix of features and price for your applications. +
    8. +
    9. +
      Find Web Hosting
      + You can easily find a web hosting company that offers the right mix of features and price for your applications. Learn more… -
    10. -
    +
  2. +
diff --git a/CMS_SC/Default.aspx.designer.cs b/CMS_SC/Default.aspx.designer.cs index 4d1c1a5..aea71d7 100644 --- a/CMS_SC/Default.aspx.designer.cs +++ b/CMS_SC/Default.aspx.designer.cs @@ -1,17 +1,15 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC -{ - - - public partial class _Default - { +namespace CMS_SC { + + + public partial class _Default { } } diff --git a/CMS_SC/Site.Master b/CMS_SC/Site.Master index fb2e922..ad483c9 100644 --- a/CMS_SC/Site.Master +++ b/CMS_SC/Site.Master @@ -3,87 +3,87 @@ - - <%: Page.Title %> - My ASP.NET Application - - <%: Scripts.Render("~/bundles/modernizr") %> - - - - - + + <%: Page.Title %> - My ASP.NET Application + + <%: Scripts.Render("~/bundles/modernizr") %> + + + + + -
+ - - <%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%> - <%--Framework Scripts--%> - - - - - - - - - - - - - - <%--Site Scripts--%> + + <%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%> + <%--Framework Scripts--%> - + + + + + + + + + + + + + <%--Site Scripts--%> +
-
-
-

- your logo here -

-
-
-
- - - - - -

- Hello, - ! - -

-
-
-
- -
+
+ +
+
+ + + + + +

+ Hello, + + ! + +

+
+
+
+ +
+
- -
- -
+ +
+ +
-
-
-

© <%: DateTime.Now.Year %> - My ASP.NET Application

-
+
+
+

© <%: DateTime.Now.Year %> - My ASP.NET Application

+
-
+ diff --git a/CMS_SC/Site.Master.cs b/CMS_SC/Site.Master.cs index 6672c59..a33b519 100644 --- a/CMS_SC/Site.Master.cs +++ b/CMS_SC/Site.Master.cs @@ -5,66 +5,66 @@ using System.Web.UI; namespace CMS_SC { - public partial class SiteMaster : MasterPage + public partial class SiteMaster : MasterPage + { + private const string AntiXsrfTokenKey = "__AntiXsrfToken"; + private const string AntiXsrfUserNameKey = "__AntiXsrfUserName"; + private string _antiXsrfTokenValue; + + protected void Page_Init(object sender, EventArgs e) { - private const string AntiXsrfTokenKey = "__AntiXsrfToken"; - private const string AntiXsrfUserNameKey = "__AntiXsrfUserName"; - private string _antiXsrfTokenValue; + // The code below helps to protect against XSRF attacks + var requestCookie = Request.Cookies[AntiXsrfTokenKey]; + Guid requestCookieGuidValue; + if (requestCookie != null && Guid.TryParse(requestCookie.Value, out requestCookieGuidValue)) + { + // Use the Anti-XSRF token from the cookie + _antiXsrfTokenValue = requestCookie.Value; + Page.ViewStateUserKey = _antiXsrfTokenValue; + } + else + { + // Generate a new Anti-XSRF token and save to the cookie + _antiXsrfTokenValue = Guid.NewGuid().ToString("N"); + Page.ViewStateUserKey = _antiXsrfTokenValue; - protected void Page_Init(object sender, EventArgs e) + var responseCookie = new HttpCookie(AntiXsrfTokenKey) { - // The code below helps to protect against XSRF attacks - var requestCookie = Request.Cookies[AntiXsrfTokenKey]; - Guid requestCookieGuidValue; - if (requestCookie != null && Guid.TryParse(requestCookie.Value, out requestCookieGuidValue)) - { - // Use the Anti-XSRF token from the cookie - _antiXsrfTokenValue = requestCookie.Value; - Page.ViewStateUserKey = _antiXsrfTokenValue; - } - else - { - // Generate a new Anti-XSRF token and save to the cookie - _antiXsrfTokenValue = Guid.NewGuid().ToString("N"); - Page.ViewStateUserKey = _antiXsrfTokenValue; - - var responseCookie = new HttpCookie(AntiXsrfTokenKey) - { - HttpOnly = true, - Value = _antiXsrfTokenValue - }; - if (FormsAuthentication.RequireSSL && Request.IsSecureConnection) - { - responseCookie.Secure = true; - } - Response.Cookies.Set(responseCookie); - } - - Page.PreLoad += master_Page_PreLoad; - } - - protected void master_Page_PreLoad(object sender, EventArgs e) + HttpOnly = true, + Value = _antiXsrfTokenValue + }; + if (FormsAuthentication.RequireSSL && Request.IsSecureConnection) { - if (!IsPostBack) - { - // Set Anti-XSRF token - ViewState[AntiXsrfTokenKey] = Page.ViewStateUserKey; - ViewState[AntiXsrfUserNameKey] = Context.User.Identity.Name ?? String.Empty; - } - else - { - // Validate the Anti-XSRF token - if ((string)ViewState[AntiXsrfTokenKey] != _antiXsrfTokenValue - || (string)ViewState[AntiXsrfUserNameKey] != (Context.User.Identity.Name ?? String.Empty)) - { - throw new InvalidOperationException("Validation of Anti-XSRF token failed."); - } - } + responseCookie.Secure = true; } + Response.Cookies.Set(responseCookie); + } - protected void Page_Load(object sender, EventArgs e) - { - - } + Page.PreLoad += master_Page_PreLoad; } + + protected void master_Page_PreLoad(object sender, EventArgs e) + { + if (!IsPostBack) + { + // Set Anti-XSRF token + ViewState[AntiXsrfTokenKey] = Page.ViewStateUserKey; + ViewState[AntiXsrfUserNameKey] = Context.User.Identity.Name ?? String.Empty; + } + else + { + // Validate the Anti-XSRF token + if ((string)ViewState[AntiXsrfTokenKey] != _antiXsrfTokenValue + || (string)ViewState[AntiXsrfUserNameKey] != (Context.User.Identity.Name ?? String.Empty)) + { + throw new InvalidOperationException("Validation of Anti-XSRF token failed."); + } + } + } + + protected void Page_Load(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/CMS_SC/Site.Master.designer.cs b/CMS_SC/Site.Master.designer.cs index 6f2f920..2669138 100644 --- a/CMS_SC/Site.Master.designer.cs +++ b/CMS_SC/Site.Master.designer.cs @@ -1,43 +1,41 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC -{ - - - public partial class SiteMaster - { - +namespace CMS_SC { + + + public partial class SiteMaster { + /// - /// HeadContent control. + /// Controllo HeadContent. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.ContentPlaceHolder HeadContent; - + /// - /// FeaturedContent control. + /// Controllo FeaturedContent. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.ContentPlaceHolder FeaturedContent; - + /// - /// MainContent control. + /// Controllo MainContent. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.ContentPlaceHolder MainContent; } diff --git a/CMS_SC/Test.aspx b/CMS_SC/Test.aspx index ab7d262..30bca98 100644 --- a/CMS_SC/Test.aspx +++ b/CMS_SC/Test.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/BootstrapNoUpdPnl.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CMS_SC.Test" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CMS_SC.Test" %> <%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %> diff --git a/CMS_SC/Test.aspx.cs b/CMS_SC/Test.aspx.cs index 5d203d8..7d1a91b 100644 --- a/CMS_SC/Test.aspx.cs +++ b/CMS_SC/Test.aspx.cs @@ -2,11 +2,11 @@ namespace CMS_SC { - public partial class Test : System.Web.UI.Page + public partial class Test : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) { - protected void Page_Load(object sender, EventArgs e) - { - } } + } } \ No newline at end of file diff --git a/CMS_SC/Web.CMS.config b/CMS_SC/Web.CMS.config index 51a6ade..41c90bf 100644 --- a/CMS_SC/Web.CMS.config +++ b/CMS_SC/Web.CMS.config @@ -30,10 +30,12 @@ + + diff --git a/CMS_SC/Web.config b/CMS_SC/Web.config index f822f32..48c682e 100644 --- a/CMS_SC/Web.config +++ b/CMS_SC/Web.config @@ -23,9 +23,10 @@ - + + @@ -34,7 +35,7 @@ - + @@ -104,12 +105,14 @@ + + + @@ -34,7 +35,7 @@ - + @@ -104,12 +105,14 @@ + +