public void ProcessRequest(HttpContext context) { SendDataBLL sdb = new SendDataBLL(); SensorData sd = new SensorData(); sd.Node = context.Request.QueryString["node"]; sd.Sensor = context.Request.QueryString["sensor"]; sd.V1 = context.Request.QueryString["v1"]; sd.V2 = context.Request.QueryString["v2"]; sd.DTTime = DateTime.Parse(context.Request.QueryString["datetime"]); sdb.AddSensor(sd); }
public void ProcessRequest(HttpContext context) { SendDataBLL sdb = new SendDataBLL(); //context.Response.ContentType = "text/html"; //string filePath = context.Request.MapPath("HtmlPage.html"); //string fileContent = File.ReadAllText(filePath); //context.Response.Write(fileContent); SensorData sd = new SensorData(); sd.Node = context.Request.QueryString["node"]; sd.Sensor = context.Request.QueryString["sensor"]; sd.V1 = context.Request.QueryString["v1"]; sd.V2 = context.Request.QueryString["v2"]; sd.DTTime = DateTime.Parse(context.Request.QueryString["datetime"]); sdb.AddSensor(sd); }