I think I myself understood the answer itself, with some help from Joao and the answers of others.
I just need to write this:
if (Request.Params[param] != nul) { ... } else { Response.ContentType = "text/html"; Response.Write("Authentication error"); Response.StatusCode = 401; Response.End(); }
Simple! :) Let me know if there are any potential problems with this!
source share