How Can I Create An Http Response From Scratch?
I have code that returns an http response, but it also includes the content of the page. How can I create a response from scratch so it won't include anything except what I put in
Solution 1:
After you've set the status code and written out the response content, call HttpContext.Current.Response.End()
to stop the execution of the current request.
Post a Comment for "How Can I Create An Http Response From Scratch?"