ajax之xmlhttp_ajax教程

网络整理 - 07-26


检测用户是否存在

Created by dzh @2006/06/27 18:22
Partial Class Web_User_CheckUser
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.QueryString("LogonName") Is Nothing Then
            Response.Write("false" + "?EX")
            Response.End()
            Exit Sub
        End If

        If (New EasyClick.EasyBusiness.UserBusiness).GetUserByLogonName(Request.QueryString("LogonName").ToString) Is Nothing Then
            Response.Write("false" + "?EX")
            Response.End()
            Exit Sub
        Else
            Response.Write("true" + "?EX")
            Response.End()
            Exit Sub
        End If
    End Sub
End Class