|
|
@@ -0,0 +1,26 @@
|
|
|
+<%@ WebHandler Language="C#" Class="plc_test" %>
|
|
|
+
|
|
|
+using System;
|
|
|
+using System.Web;
|
|
|
+using System.Collections.Generic;
|
|
|
+using Curtain.Net.Sockets;
|
|
|
+using DK.XuWei.WebMes;
|
|
|
+
|
|
|
+public class plc_test : IHttpHandler
|
|
|
+{
|
|
|
+
|
|
|
+ public void ProcessRequest(HttpContext context)
|
|
|
+ {
|
|
|
+ context.Response.ContentType = "text/plain";
|
|
|
+ context.Response.Write(new JsonResult(context.Request["barcode"]).ToJson());
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool IsReusable
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|