废话不多说了,直接给大家贴代码了,具体代码如下所示:
reg.ashx代码:
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebT1.Ti.html2 { ////// reg 的摘要说明 /// public class reg : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context.Request["email"] != null) { string strEmail = context.Request["email"]; ListlstUser = DataService.GetUserList(); var v = lstUser.Where(p => p.Email == strEmail); int iCount = 0; if (v.Count() > 0) { iCount = 1; } context.Response.ContentType = "text/plain"; context.Response.Write(iCount.ToString()); } } public bool IsReusable { get { return false; } } } public class DataService { /// /// 模拟已注册用户数据 /// public static ListGetUserList() { var list = new List (); list.Add(new UserModel() { Email = "[email protected]" }); list.Add(new UserModel() { Email = "[email protected]" }); list.Add(new UserModel() { Email = "[email protected]" }); list.Add(new UserModel() { Email = "[email protected]" }); list.Add(new UserModel() { Email = "[email protected]" }); return list; } } public class UserModel { public string Email { get; set; } } }
摩尔庄园 安卓官方版v2.9.24091002S
摩尔庄园很多小伙伴一定都在小时候玩过,但随着我们年龄的增长淡
梦幻庄园最新版 官方正版v1.0.0
梦幻庄园是一款非常好玩的模拟经营类游戏,玩家在游戏中有一个属
合并梦幻岛免内购版 v2.1.0
合并梦幻岛无限内购版是游戏的破解版本,在该版本中为玩家解锁了
无悔华夏魅族版 2025最新版v3.5.194
无悔华夏魅族版是一款超级好用的模拟经营游戏。在这里玩家们需要
月影别墅官方安装包2025版 安卓版v2.3.24
月影别墅官方安装包2025版是一款匠心独具的乙女向剧情游戏,