asp.net - How do I generate a 404 error from an HttpModule? -


I have an ASP.NET HTTP module, which is HTTPPAP. Generally I will do something as requested, by typing a file on HttpContext.Current.Response.OutputStream then call HttpApplication.CompleteRequest (). I did not find the relevant file for some requests - how do I return a 404 error?

You tried to get the new HTTP access (404, "not found"); ?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -