Author: jcrabtreesla | Posted on: 6/11/2008 2:50:48 PM | Views : 669

Here's my scenario. I have a MOSS 2007 web application. We have customized the login page to inherit from a different assembly. That code simply runs a Response.Redirect.

Sometimes, not always or not predictibly, On_Click of the login button, it will simply return a 404 page not found. The site I am redirecting to definitely exists. When this problem happens I can hit the back browser button, re-enter the login info, resubmit, and everything works fine. So I'm not sure what's causing the error. I don't think it has anything to do with Sharepoint or MOSS, since it's basically a .NET login page with a custom code behind assembly.

In a previous application I developed we used a lot of AJAX and I had a similar problem. The cause ended up being that the AJAX had not fully loaded the page, so calling the Response.Redirect before the page fully loaded would cause the 404. We fixed it then by disabling the button until the page fully loaded.&nbs ...

Go to the complete details ...