日期:2014-05-16 浏览次数:20762 次
$.ajax({
type: "post",
url: "LogoHandler.ashx",
data: { User: username.value, PassWord: userpass.value },
success: function (msg) {
alert(msg)
}
});
Imports System.Web
Imports System.Web.Services
Public Class LogoHandler
Implements System.Web.IHttpHandler
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim User As String = Convert.ToString(context.Request.Params("User"))
Dim IsOk As String = "1"
context.Response.ContentType = "text/plain"
context.Response.Write(IsOk)
End Sub
ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class