Mega Code Archive

 
Categories / ASP.Net Tutorial / Development
 

The IHttpHandler page template (VB)

File: Handler.ashx <%@ WebHandler Language="VB" Class="Handler" %> Imports System Imports System.Web Public Class Handler : Implements IHttpHandler          Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest         context.Response.ContentType = "text/plain"         context.Response.Write("Hello World")     End Sub       Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable         Get             Return False         End Get     End Property End Class