-
+
+
+
+
+
+
+
+
+<%--
+
+
+ --%>
+
+
+
+
+
+
+
+ <%----%>
+
+
+ <%----%>
+
+
+
+
diff --git a/NKC_WF/MachineUnload.aspx.cs b/NKC_WF/MachineUnload.aspx.cs
index fd7bfa4..290b704 100644
--- a/NKC_WF/MachineUnload.aspx.cs
+++ b/NKC_WF/MachineUnload.aspx.cs
@@ -1,15 +1,18 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
+using System.IO;
namespace NKC_WF
{
public partial class MachineUnload : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
+ {
+ string filename = Server.MapPath("~/Images/test.svg");
+ string answ = File.ReadAllText(filename);
+ svgTable.InnerHtml = answ;
+ }
+
+ protected void timReloadCss_Tick(object sender, EventArgs e)
{
}
diff --git a/NKC_WF/MachineUnload.aspx.designer.cs b/NKC_WF/MachineUnload.aspx.designer.cs
index ae6c4c4..6333f7b 100644
--- a/NKC_WF/MachineUnload.aspx.designer.cs
+++ b/NKC_WF/MachineUnload.aspx.designer.cs
@@ -11,5 +11,41 @@ namespace NKC_WF {
public partial class MachineUnload {
+
+ ///
+ /// Controllo uplTavola.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.UpdatePanel uplTavola;
+
+ ///
+ /// Controllo timReloadCss.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.Timer timReloadCss;
+
+ ///
+ /// Controllo upnlDrawings.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.UpdatePanel upnlDrawings;
+
+ ///
+ /// Controllo svgTable.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl svgTable;
}
}
diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj
index ac9381d..d4c1041 100644
--- a/NKC_WF/NKC_WF.csproj
+++ b/NKC_WF/NKC_WF.csproj
@@ -173,6 +173,7 @@
SheetColor.css
+
@@ -339,6 +340,13 @@
DevUtils.aspx
+
+ getDynCss.aspx
+ ASPXCodeBehind
+
+
+ getDynCss.aspx
+
Global.asax
diff --git a/NKC_WF/getDynCss.aspx b/NKC_WF/getDynCss.aspx
new file mode 100644
index 0000000..c43b901
--- /dev/null
+++ b/NKC_WF/getDynCss.aspx
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="getDynCss.aspx.cs" Inherits="NKC_WF.getDynCss" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/NKC_WF/getDynCss.aspx.cs b/NKC_WF/getDynCss.aspx.cs
new file mode 100644
index 0000000..d2a1bea
--- /dev/null
+++ b/NKC_WF/getDynCss.aspx.cs
@@ -0,0 +1,34 @@
+using System;
+using System.IO;
+
+namespace NKC_WF
+{
+ public partial class getDynCss : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ // retitusico un CSS continuamente aggiornato...
+ Response.Clear();
+ string filename = Server.MapPath("~/Content/SheetColor.css");
+ string answ = File.ReadAllText(filename);
+ // rendo dinamico in base al secondo pari/dispari il mio #IT00006
+ int secondi = DateTime.Now.Second;
+ if (secondi % 2 == 0)
+ {
+ answ += "#IT000006 {fill: orange;}";
+ answ += "#IT000003 {fill: orange; .flashStroke; .strokeThick;}";
+
+ }
+ else
+ {
+ answ += "#IT000006 {fill: blue;}";
+ answ += "#IT000003 {fill: blue; .flashStroke; .strokeThick;}";
+ }
+
+ Response.ContentType = "text/css";
+ Response.Write(answ);
+ Response.Flush();
+ Response.End();
+ }
+ }
+}
\ No newline at end of file
diff --git a/NKC_WF/getDynCss.aspx.designer.cs b/NKC_WF/getDynCss.aspx.designer.cs
new file mode 100644
index 0000000..d4081af
--- /dev/null
+++ b/NKC_WF/getDynCss.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
+{
+
+
+ public partial class getDynCss
+ {
+
+ ///
+ /// Controllo form1.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ }
+}