废话不多说了,直接给大家贴代码了,具体代码如下所示:
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"];
List lstUser = 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 List GetUserList()
{
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; }
}
}
我的世界国际版老版
我的世界国际版正式版是一款拥有超高自由度玩法是沙盒手游,经典
我的世界国际版完整版
我的世界国际服完整版是一款十分经典好玩的mc沙盒类游戏,在海
摩托车销售模拟器内置菜单中文版
摩托车出售模拟器,又名摩托车销售模拟器,这是一个以摩托车销售
船舶模拟2020最新版
船舶模拟2020是玩法非常有意思的模拟驾驶游戏,高清3d画质
油管主播的生活2内置菜单版
油管主播的生活2内置菜单版是一款模拟养成类游戏,在这里你将体