diff --git a/GMW-RT/GMW-RT.csproj b/GMW-RT/GMW-RT.csproj index 2f69af95..24e803f9 100644 --- a/GMW-RT/GMW-RT.csproj +++ b/GMW-RT/GMW-RT.csproj @@ -81,6 +81,7 @@ + @@ -91,6 +92,13 @@ + + MBC.aspx + ASPXCodeBehind + + + MBC.aspx + diff --git a/GMW-RT/MBC.aspx b/GMW-RT/MBC.aspx new file mode 100644 index 00000000..4f376839 --- /dev/null +++ b/GMW-RT/MBC.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MBC.aspx.cs" Inherits="GMW_RT.MBC" %> + + + + + + + + +
+
+ OK +
+
+ + diff --git a/GMW-RT/MBC.aspx.cs b/GMW-RT/MBC.aspx.cs new file mode 100644 index 00000000..e8773ad4 --- /dev/null +++ b/GMW-RT/MBC.aspx.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW_RT +{ + public partial class MBC : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // se ho un messaggio (mittente, messaggio) lo invio... + string mittente = Request.QueryString["mittente"]; + string messaggio = Request.QueryString["messaggio"]; + if (mittente != "" && messaggio != "") + { + Broad.cast.sendMess(mittente, messaggio); + } + } + } +} \ No newline at end of file diff --git a/GMW-RT/MBC.aspx.designer.cs b/GMW-RT/MBC.aspx.designer.cs new file mode 100644 index 00000000..c28127c4 --- /dev/null +++ b/GMW-RT/MBC.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW_RT +{ + + + public partial class MBC + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index 031d3955..9f56fcf7 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW/bin/GMW-RT.dll b/GMW/bin/GMW-RT.dll index 031d3955..9f56fcf7 100644 Binary files a/GMW/bin/GMW-RT.dll and b/GMW/bin/GMW-RT.dll differ diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index e97ad962..d66e28a1 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index 9c218176..a66f0cee 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/Newtonsoft.Json.dll b/GMW/bin/Newtonsoft.Json.dll index 9adda64d..a957fda6 100644 Binary files a/GMW/bin/Newtonsoft.Json.dll and b/GMW/bin/Newtonsoft.Json.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index 3a3270e0..7a827115 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll index efc02079..54e036d3 100644 Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ diff --git a/GMW/test.aspx.cs b/GMW/test.aspx.cs index 272bb75c..c8a2fbd1 100644 --- a/GMW/test.aspx.cs +++ b/GMW/test.aspx.cs @@ -6,6 +6,8 @@ using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; using GMW_RT; +using System.Net; +using System.IO; namespace GMW { @@ -23,10 +25,24 @@ namespace GMW } protected void invioMessaggio() { - Broad.cast.sendMess("GMW", txtMessage.Text.Trim()); - lblMess.Text = string.Format("Messaggio inviato! {0}", txtMessage.Text.Trim()); - txtMessage.Text = ""; - txtMessage.Focus(); + // chiamo un URL! + string answ = callUrl(string.Format(@"http://10.74.82.218/GMW-RT/MBC.aspx?mittente={0}&messaggio={1}", "GMW", txtMessage.Text.Trim())); + Response.Redirect("test"); + + //Broad.cast.sendMess("GMW", txtMessage.Text.Trim()); + //lblMess.Text = string.Format("Messaggio inviato! {0}, risposta: {1}", txtMessage.Text.Trim(), answ); + //txtMessage.Text = ""; + //txtMessage.Focus(); + } + + public string callUrl(string url) + { + string answ = ""; + WebRequest request = HttpWebRequest.Create(url); + WebResponse response = request.GetResponse(); + StreamReader reader = new StreamReader(response.GetResponseStream()); + //answ = reader.ReadToEnd(); // it takes the response from your url. now you can use as your need + return answ; } protected void txtMessage_TextChanged(object sender, EventArgs e) diff --git a/VersGen/GMW.cs b/VersGen/GMW.cs index ad8209c7..c94897a5 100644 --- a/VersGen/GMW.cs +++ b/VersGen/GMW.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("2.5.652.1552")] -[assembly: AssemblyFileVersion("2.5.652.1552")] +[assembly: AssemblyVersion("2.5.653.1553")] +[assembly: AssemblyFileVersion("2.5.653.1553")] //[assembly: AssemblyCopyright("© Steamware 2007-2014")] //[assembly: AssemblyCompany("Steamware")] diff --git a/VersGen/GMW.tt b/VersGen/GMW.tt index de81a671..75b5551c 100644 --- a/VersGen/GMW.tt +++ b/VersGen/GMW.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("2.5.652.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("2.5.652.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("2.5.653.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("2.5.653.<#= this.RevisionNumber #>")] //[assembly: AssemblyCopyright("© Steamware 2007-<#= DateTime.Now.Year #>")] //[assembly: AssemblyCompany("Steamware")] <#+