RoadFlow2.1 临时演示

Test.ashx.cs 825B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace WebForm.Platform.DBConnection
  6. {
  7. /// <summary>
  8. /// Test 的摘要说明
  9. /// </summary>
  10. public class Test : IHttpHandler
  11. {
  12. public void ProcessRequest(HttpContext context)
  13. {
  14. context.Response.ContentType = "text/plain";
  15. string connid = context.Request.QueryString["id"];
  16. Guid cid;
  17. if (!connid.IsGuid(out cid))
  18. {
  19. context.Response.Write("参数错误");
  20. return;
  21. }
  22. context.Response.Write(new RoadFlow.Platform.DBConnection().Test(cid));
  23. }
  24. public bool IsReusable
  25. {
  26. get
  27. {
  28. return false;
  29. }
  30. }
  31. }
  32. }