I keep being asked how to send an empty response (or exactly what you want, without any extra data) from an ASP.NET page, so here’s the solution:


Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  Response.Clear()
  Response.Write("Hello, world!")
  Response.End()
End Sub
No comments