Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 11, 2009 12:56 PM by ctarp2
Member
40 Points
53 Posts
Dec 10, 2009 06:20 PM|LINK
Hi all,
I need to know how to capture 401 response in an global.asax app endRequest and change it to a 302...Any snips, link, articles or code would be terrific
Regards,
Craig
All-Star
48619 Points
7957 Posts
MVP
Dec 11, 2009 05:32 AM|LINK
Hi, private void Global_EndRequest(object sender, System.EventArgs e) { if (Response.StatusCode == 401 && Request.IsAuthenticated == true) { Response.ClearContent(); Server.Execute("http://server.com/MyPage.aspx"); } if Ur hanle in endRequest in Global.asax file the chk the above link.. OR Create Httphandler..
Dec 11, 2009 12:56 PM|LINK
Many thanks...
ctarp2
Member
40 Points
53 Posts
Need best was to capture 401 response in an endRequest
Dec 10, 2009 06:20 PM|LINK
Hi all,
I need to know how to capture 401 response in an global.asax app endRequest and change it to a 302...Any snips, link, articles or code would be terrific
Regards,
Craig
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: Need best was to capture 401 response in an endRequest
Dec 11, 2009 05:32 AM|LINK
Hi,
private void Global_EndRequest(object sender, System.EventArgs e)
{
if (Response.StatusCode == 401 && Request.IsAuthenticated == true)
{
Response.ClearContent();
Server.Execute("http://server.com/MyPage.aspx");
}
if Ur hanle in endRequest in Global.asax file the chk the above link..
OR
Create Httphandler..
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
ctarp2
Member
40 Points
53 Posts
Re: Need best was to capture 401 response in an endRequest
Dec 11, 2009 12:56 PM|LINK
Many thanks...