Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Application_AuthorizeRequest Not Redirecting to specified web page

$
0
0

Hi,

In my Global.asax.vb file, I have the following:

Public Sub Application_AuthorizeRequest(sender As Object, e As EventArgs)
    If(sender.Request.Path.ToUpper().EndsWith("AddUser/ManageRoles/ManageUsers.ASPX") And Not sender.Request.IsAuthenticated) Then
        sender.Response.Redirect("~/NoAccess.aspx")
    End If
End Sub

But it just keeps redirecting to Login.aspx page.  How can I make it redirect to NoAccess page?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>