132ea4b200
- update GMW-RT - update GMW - gestione corretta dei colori da interazione Liq DT - fix sparizione button edit qta
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using SteamWare;
|
|
using System.Net;
|
|
using System.IO;
|
|
|
|
namespace GMW
|
|
{
|
|
public partial class test : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
txtUDC.Text = "";
|
|
txtParticolare.Text = "";
|
|
txtMessaggio.Text = "";
|
|
lblMess.Text = "Inserire Messaggio";
|
|
}
|
|
}
|
|
protected void invioMessaggio()
|
|
{
|
|
// chiamo un URL!
|
|
string answ = SteamWare.urlUtils.callUrl(string.Format(@"{0}/MBC.aspx?txt01={1}&txt02={2}&txt03={3}&txt04={4}&txt05={5}&txt06={6}&css1={7}&css2={8}&css3={9}", memLayer.ML.confReadString("urlRT"), txtUDC.Text, txtParticolare.Text, txtMessaggio.Text, txtCaric.Text, txtQtaTot.Text, txtRiman.Text, txtCss1.Text, txtCss2.Text, txtCss3.Text), false);
|
|
//Response.Redirect("test");
|
|
}
|
|
#if false
|
|
|
|
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;
|
|
}
|
|
#endif
|
|
|
|
protected void txtMessage_TextChanged(object sender, EventArgs e)
|
|
{
|
|
invioMessaggio();
|
|
}
|
|
|
|
protected void lbnSend_Click(object sender, EventArgs e)
|
|
{
|
|
invioMessaggio();
|
|
}
|
|
}
|
|
} |