Try set HttpResponse.SuppressContent to true, then write your own content there.

Note that this property only has effect before Response.Flush() or any of the Page/Control.Render() method are called, so call it as early as possible, ideally at Page_Load().