<%@ WebHandler Language="C#" Class="Admin_search" %>

using System;
using System.Web;
using BLL;
using Model;

public class Admin_search : IHttpHandler {

    public void ProcessRequest (HttpContext context) {
        string str = "";
        string AdminName =  context.Request["name"].ToString();
        Admin_user model = BLLAdmin_user.getAdminByName(AdminName);
        if (model != null)
       {
            str = "<span class='msg_submit' >此管理员名已经被占用，请更换！</span>";
        }
        else if (AdminName == "")
        {
            str = "<span class='msg_submit' >账号不能为空</span>";
        }
        context.Response.Write(str);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}