File: HelloWorldHttpHandler.ashx
<%@ WebHandler Language="VB" Class="HelloWorldHandler" %>
imports System
imports System.Web
public Class HelloWorldHandler
Implements IHttpHandler
Sub ProcessRequest(context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim Request As HttpRequest = context.Request
Dim Response As HttpResponse = context.Response
Response.Write("")
Response.Write("")
Response.Write(" Hello " + Request.QueryString("Name") + "
")
Response.Write("")
Response.Write("")
End Sub
Public ReadOnly Property IsReusable As Boolean Implements IHttpHandler.IsReusable
Get
return true
End Get
End Property
End Class