I have this module where I have an invalid request parameter, f.ex (not a valid url):
http://mytest.com/?pid=100
How do I return a 404 status code?
I have tried this:
Response.StatusCode = 404;
Response.End();
But this will give me the IIS 404 page and not the DNN 404 page. Is there another way to do this in DNN?