I'm trying to get an authenticated web user, who does not have permission to access an area (but is an authenticated user), to receive a redirect to an "Access Denied" page. Currently they are just a redirected to the login page.
Please provide the complete code for the changes.
<script language="VB" runat="server">
Sub ProcessLogin(objSender As Object, objArgs As EventArgs)
If FormsAuthentication.Authenticate(txtUser.Text, txtPassword.Text) Then
ErrorMessage.InnerHtml = "<b>Your ID or Password are incorrect.</b> Please try again."