Hi all,
I got the idea wrong before, I need to generate programmatically a 401 response, without a popup window asking for credentials.
I have tried:
Response.AppendHeader("HTTP/1.0", "401");
but this has not produced the correct response.
Thanks in advance,
Lee BlakePosted Apr 4, 2008, 6:07 AM
Ok, found the answer:
Response
.StatusCode = 401;Response.Flush();
this sets the status to return and then sends it.