refresh vari
This commit is contained in:
@@ -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
|
||||
|
||||
Binary file not shown.
@@ -363,6 +363,13 @@
|
||||
<Content Include="Scripts\bootstrap.js" />
|
||||
<Content Include="Scripts\bootstrap.min.js" />
|
||||
<Content Include="Scripts\BrowserWindowSize.js" />
|
||||
<Content Include="Scripts\bootstrap.min.js.map" />
|
||||
<Content Include="Scripts\bootstrap.js.map" />
|
||||
<Content Include="Scripts\bootstrap.bundle.min.js.map" />
|
||||
<Content Include="Scripts\bootstrap.bundle.js.map" />
|
||||
<Content Include="Resources\FlagList.map">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Scripts\esm\popper-utils.js" />
|
||||
<Content Include="Scripts\esm\popper-utils.min.js" />
|
||||
<Content Include="Scripts\esm\popper.js" />
|
||||
@@ -371,13 +378,6 @@
|
||||
<Content Include="Scripts\esm\popper.js.map" />
|
||||
<Content Include="Scripts\esm\popper-utils.min.js.map" />
|
||||
<Content Include="Scripts\esm\popper-utils.js.map" />
|
||||
<Content Include="Scripts\bootstrap.min.js.map" />
|
||||
<Content Include="Scripts\bootstrap.js.map" />
|
||||
<Content Include="Scripts\bootstrap.bundle.min.js.map" />
|
||||
<Content Include="Scripts\bootstrap.bundle.js.map" />
|
||||
<Content Include="Resources\FlagList.map">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-3.3.1.js" />
|
||||
<Content Include="Scripts\jquery-3.3.1.min.js" />
|
||||
@@ -1002,10 +1002,10 @@
|
||||
<None Include="Reports\Report_F.rdlc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TypeScriptCompile Include="Scripts\index.d.ts" />
|
||||
<Service Include="{4A0DDDB5-7A95-4FBF-97CC-616D07737A77}" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{4A0DDDB5-7A95-4FBF-97CC-616D07737A77}" />
|
||||
<TypeScriptCompile Include="Scripts\index.d.ts" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
|
||||
+26
-26
@@ -1,39 +1,39 @@
|
||||
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CMS_SC._Default" %>
|
||||
|
||||
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
|
||||
<section class="featured">
|
||||
<div class="content-wrapper">
|
||||
<hgroup class="title">
|
||||
<h1><%: Title %>.</h1>
|
||||
<h2>Modify this template to jump-start your ASP.NET application.</h2>
|
||||
</hgroup>
|
||||
<p>
|
||||
To learn more about ASP.NET, visit <a href="http://asp.net" title="ASP.NET Website">http://asp.net</a>.
|
||||
<section class="featured">
|
||||
<div class="content-wrapper">
|
||||
<hgroup class="title">
|
||||
<h1><%: Title %>.</h1>
|
||||
<h2>Modify this template to jump-start your ASP.NET application.</h2>
|
||||
</hgroup>
|
||||
<p>
|
||||
To learn more about ASP.NET, visit <a href="http://asp.net" title="ASP.NET Website">http://asp.net</a>.
|
||||
The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET.
|
||||
If you have any questions about ASP.NET visit
|
||||
<a href="http://forums.asp.net/18.aspx" title="ASP.NET Forum">our forums</a>.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</asp:Content>
|
||||
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
|
||||
<h3>We suggest the following:</h3>
|
||||
<ol class="round">
|
||||
<li class="one">
|
||||
<h5>Getting Started</h5>
|
||||
ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model.
|
||||
<h3>We suggest the following:</h3>
|
||||
<ol class="round">
|
||||
<li class="one">
|
||||
<h5>Getting Started</h5>
|
||||
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.
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245146">Learn more…</a>
|
||||
</li>
|
||||
<li class="two">
|
||||
<h5>Add NuGet packages and jump-start your coding</h5>
|
||||
NuGet makes it easy to install and update free libraries and tools.
|
||||
</li>
|
||||
<li class="two">
|
||||
<h5>Add NuGet packages and jump-start your coding</h5>
|
||||
NuGet makes it easy to install and update free libraries and tools.
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245147">Learn more…</a>
|
||||
</li>
|
||||
<li class="three">
|
||||
<h5>Find Web Hosting</h5>
|
||||
You can easily find a web hosting company that offers the right mix of features and price for your applications.
|
||||
</li>
|
||||
<li class="three">
|
||||
<h5>Find Web Hosting</h5>
|
||||
You can easily find a web hosting company that offers the right mix of features and price for your applications.
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245143">Learn more…</a>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+9
-11
@@ -1,17 +1,15 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
|
||||
|
||||
public partial class _Default
|
||||
{
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class _Default {
|
||||
}
|
||||
}
|
||||
|
||||
+69
-69
@@ -3,87 +3,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head runat="server">
|
||||
<meta charset="utf-8" />
|
||||
<title><%: Page.Title %> - My ASP.NET Application</title>
|
||||
<asp:PlaceHolder runat="server">
|
||||
<%: Scripts.Render("~/bundles/modernizr") %>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:BundleReference runat="server" Path="~/Content/css" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
|
||||
<meta charset="utf-8" />
|
||||
<title><%: Page.Title %> - My ASP.NET Application</title>
|
||||
<asp:PlaceHolder runat="server">
|
||||
<%: Scripts.Render("~/bundles/modernizr") %>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:BundleReference runat="server" Path="~/Content/css" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
|
||||
</head>
|
||||
<body>
|
||||
<form runat="server">
|
||||
<form runat="server">
|
||||
<asp:ScriptManager runat="server">
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
|
||||
<%--Framework Scripts--%>
|
||||
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="jquery" />
|
||||
<asp:ScriptReference Name="jquery.ui.combined" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
|
||||
<%--Framework Scripts--%>
|
||||
|
||||
</Scripts>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="jquery" />
|
||||
<asp:ScriptReference Name="jquery.ui.combined" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<div class="float-left">
|
||||
<p class="site-title">
|
||||
<a runat="server" href="~/">your logo here</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="float-right">
|
||||
<section id="login">
|
||||
<asp:LoginView runat="server" ViewStateMode="Disabled">
|
||||
<AnonymousTemplate>
|
||||
<ul>
|
||||
<li><a id="registerLink" runat="server" href="~/Account/Register">Register</a></li>
|
||||
<li><a id="loginLink" runat="server" href="~/Account/Login">Log in</a></li>
|
||||
</ul>
|
||||
</AnonymousTemplate>
|
||||
<LoggedInTemplate>
|
||||
<p>
|
||||
Hello, <a runat="server" class="username" href="~/Account/Manage" title="Manage your account">
|
||||
<asp:LoginName runat="server" CssClass="username" /></a>!
|
||||
<asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" />
|
||||
</p>
|
||||
</LoggedInTemplate>
|
||||
</asp:LoginView>
|
||||
</section>
|
||||
<nav>
|
||||
<ul id="menu">
|
||||
<li><a runat="server" href="~/">Home</a></li>
|
||||
<li><a runat="server" href="~/About">About</a></li>
|
||||
<li><a runat="server" href="~/Contact">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<div class="float-left">
|
||||
<p class="site-title">
|
||||
<a runat="server" href="~/">your logo here</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="float-right">
|
||||
<section id="login">
|
||||
<asp:LoginView runat="server" ViewStateMode="Disabled">
|
||||
<AnonymousTemplate>
|
||||
<ul>
|
||||
<li><a id="registerLink" runat="server" href="~/Account/Register">Register</a></li>
|
||||
<li><a id="loginLink" runat="server" href="~/Account/Login">Log in</a></li>
|
||||
</ul>
|
||||
</AnonymousTemplate>
|
||||
<LoggedInTemplate>
|
||||
<p>
|
||||
Hello, <a runat="server" class="username" href="~/Account/Manage" title="Manage your account">
|
||||
<asp:LoginName runat="server" CssClass="username" />
|
||||
</a>!
|
||||
<asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" />
|
||||
</p>
|
||||
</LoggedInTemplate>
|
||||
</asp:LoginView>
|
||||
</section>
|
||||
<nav>
|
||||
<ul id="menu">
|
||||
<li><a runat="server" href="~/">Home</a></li>
|
||||
<li><a runat="server" href="~/About">About</a></li>
|
||||
<li><a runat="server" href="~/Contact">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="body">
|
||||
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
|
||||
<section class="content-wrapper main-content clear-fix">
|
||||
<asp:ContentPlaceHolder runat="server" ID="MainContent" />
|
||||
</section>
|
||||
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
|
||||
<section class="content-wrapper main-content clear-fix">
|
||||
<asp:ContentPlaceHolder runat="server" ID="MainContent" />
|
||||
</section>
|
||||
</div>
|
||||
<footer>
|
||||
<div class="content-wrapper">
|
||||
<div class="float-left">
|
||||
<p>© <%: DateTime.Now.Year %> - My ASP.NET Application</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<div class="float-left">
|
||||
<p>© <%: DateTime.Now.Year %> - My ASP.NET Application</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+55
-55
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+21
-23
@@ -1,43 +1,41 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
|
||||
|
||||
public partial class SiteMaster
|
||||
{
|
||||
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class SiteMaster {
|
||||
|
||||
/// <summary>
|
||||
/// HeadContent control.
|
||||
/// Controllo HeadContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// FeaturedContent control.
|
||||
/// Controllo FeaturedContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainContent control.
|
||||
/// Controllo MainContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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" %>
|
||||
|
||||
|
||||
+4
-4
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,10 +30,12 @@
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="CMS_SC_Data.Properties.Settings.CMS_SCConnectionString" connectionString="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=SQL-AUTOMAZIONE\SQLEXPRESS;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=conn_CMSSC;Password=pwd_CMSSC;" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
|
||||
+5
-2
@@ -23,9 +23,10 @@
|
||||
<add key="disable_singleton" value="true" />
|
||||
<add key="errorPageRedirect" value="./Reset?Action=CDV" />
|
||||
<add key="maxAgeAppConf_min" value="15" />
|
||||
<add key="SC_RedEnab" value="true"/>
|
||||
<add key="SC_RedEnab" value="true" />
|
||||
<!--nome sw e versioni-->
|
||||
<add key="Environment" value="DEV" />
|
||||
<add key="baseLang" value="IT"/>
|
||||
<add key="CodCDC" value="X999" />
|
||||
<add key="CodModulo" value="CMS_SC" />
|
||||
<add key="CodFunzione" value="User" />
|
||||
@@ -34,7 +35,7 @@
|
||||
<add key="baseUrl" value="http://iis02/CMS-SC" />
|
||||
<!--versione applicazione-->
|
||||
<add key="downloadPath" value="c:\Steamware\installers\" />
|
||||
<add key="appVers" value="CMS"/>
|
||||
<add key="appVers" value="CMS" />
|
||||
<!--<add key="money" value="€" />
|
||||
<add key="weight" value="kg" />-->
|
||||
<!--area auth-->
|
||||
@@ -104,12 +105,14 @@
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<!--fix glimpse gestioen sync-->
|
||||
<add key="Glimpse:DisableAsyncSupport" value="true" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="CMS_SC_Data.Properties.Settings.CMS_SCConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url);
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx","");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -78,8 +78,12 @@ namespace CMS_SC.WebUserControls
|
||||
//PagCorrente(); // tolto 2015.02.24
|
||||
memLayer.ML.emptySessionVal("searchVal");
|
||||
}
|
||||
// fix componenti
|
||||
lblUtente.DataBind();
|
||||
// se ho utente...
|
||||
if (devicesAuthProxy.stObj.isAuth)
|
||||
{
|
||||
// fix componenti
|
||||
lblUtente.DataBind();
|
||||
}
|
||||
}
|
||||
// SOLO se la pagina NON E' "safe"...
|
||||
if (memLayer.ML.confReadString("PageNoIndex").IndexOf(titolo) < 0)
|
||||
@@ -104,8 +108,11 @@ namespace CMS_SC.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
// rimando pagina x registrazione devices
|
||||
Response.Redirect("UserAdmin");
|
||||
// rimando pagina x registrazione devices SE NON E' già UserAdmin...
|
||||
if (memLayer.ML.CRS("PageNoIndex").IndexOf(titolo) < 0)
|
||||
{
|
||||
Response.Redirect("UserAdmin");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,7 +134,7 @@ namespace CMS_SC.WebUserControls
|
||||
private bool checkUser()
|
||||
{
|
||||
bool allOk = devicesAuthProxy.stObj.isAuth;
|
||||
if (!devicesAuthProxy.stObj.isAuth)
|
||||
if (!allOk)
|
||||
{
|
||||
// controllo cookie device...
|
||||
allOk = checkAuthCookieCMS_SC();
|
||||
@@ -202,7 +209,7 @@ namespace CMS_SC.WebUserControls
|
||||
try
|
||||
{
|
||||
// salvo ultimo "contatto" del device aggiornando descrizione ed IP
|
||||
devicesAuthProxy.stObj.taAnagDev.updateIP(device.IdxDevice, DateTime.Now, postazione_IP, userAgent);
|
||||
devicesAuthProxy.stObj.taAnagDev.updateIP(device.IdxDevice, DateTime.Now, userAgent, postazione_IP);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Binary file not shown.
@@ -23,9 +23,10 @@
|
||||
<add key="disable_singleton" value="true" />
|
||||
<add key="errorPageRedirect" value="./Reset?Action=CDV" />
|
||||
<add key="maxAgeAppConf_min" value="15" />
|
||||
<add key="SC_RedEnab" value="true"/>
|
||||
<add key="SC_RedEnab" value="true" />
|
||||
<!--nome sw e versioni-->
|
||||
<add key="Environment" value="DEV" />
|
||||
<add key="baseLang" value="IT"/>
|
||||
<add key="CodCDC" value="X999" />
|
||||
<add key="CodModulo" value="CMS_SC" />
|
||||
<add key="CodFunzione" value="User" />
|
||||
@@ -34,7 +35,7 @@
|
||||
<add key="baseUrl" value="http://iis02/CMS-SC" />
|
||||
<!--versione applicazione-->
|
||||
<add key="downloadPath" value="c:\Steamware\installers\" />
|
||||
<add key="appVers" value="CMS"/>
|
||||
<add key="appVers" value="CMS" />
|
||||
<!--<add key="money" value="€" />
|
||||
<add key="weight" value="kg" />-->
|
||||
<!--area auth-->
|
||||
@@ -104,12 +105,14 @@
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<!--fix glimpse gestioen sync-->
|
||||
<add key="Glimpse:DisableAsyncSupport" value="true" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="CMS_SC_Data.Properties.Settings.CMS_SCConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=CMS-SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
Binary file not shown.
@@ -1316,6 +1316,11 @@
|
||||
resetta il vocabolario rileggendo i dati...
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.DataWrap.vocabolarioOk">
|
||||
<summary>
|
||||
Verifica se il vocabolario sia ok...
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.DataWrap.creaNuovoLemmaVoc(System.String)">
|
||||
<summary>
|
||||
crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--"
|
||||
@@ -3201,6 +3206,13 @@
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.zippaSingoloFile(System.IO.FileInfo)">
|
||||
<summary>
|
||||
comprime zip il file indicato
|
||||
</summary>
|
||||
<param name="_fi">File in formato FileInfo</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.zippaFilesByRegExp(System.String,System.String)">
|
||||
<summary>
|
||||
comprime zip i files corrispondenti alla RegExp indicata nella dir corrente
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user