Create a new httpHandler inside your ASP.NET project. Apply the following code (VB) to the handler file:
Public Class AttachmentDownload
Implements System.Web.IHttpHandler
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
' pass an ID thr...