I have the code below to in the global.asax to redirect users to the change password page when its been 48 since they last cahnged thir passowrd
Sub Application_PostAuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
'code that runs after the person has been authicated
If User.Identity.IsAuthenticated Then
Dim userdetails As MembershipUser = Membership.GetUser
' If userdetails.LastPasswordChangedDate < Today.AddDays(-48) Then
If Request.RawUrl.Contains("/Account/ChangePassword.aspx") = False Then
The problem is that when this redirect is triggered the change password page loads without any css styling and with 2 "syntax errors code 0" in IE.
going to the change passowrd page normally or from redirects from other pages, it all loads fine.
the problem is just when loading via a redirect from the global.asax
Any ideas what to look for.