RoadFlow2.1 临时演示

CheckAccount.ashx.cs 751B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace WebForm.Platform.Members
  6. {
  7. /// <summary>
  8. /// CheckAccount 的摘要说明
  9. /// </summary>
  10. public class CheckAccount : IHttpHandler
  11. {
  12. public void ProcessRequest(HttpContext context)
  13. {
  14. context.Response.ContentType = "text/plain";
  15. string account = context.Request.Form["value"];
  16. string id = context.Request["id"];
  17. context.Response.Write(new RoadFlow.Platform.Users().HasAccount(account, id) ? "帐号已经被使用了" : "1");
  18. }
  19. public bool IsReusable
  20. {
  21. get
  22. {
  23. return false;
  24. }
  25. }
  26. }
  27. }