Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:36:42+00:00 2026-06-04T19:36:42+00:00

I have the following settings in my web.config: <!– The <authentication> section enables configuration

  • 0

I have the following settings in my web.config:

 <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. -->
  <authentication mode="Forms">
    <forms loginUrl="/login.aspx"
           protection="All"
           timeout="30"
           name=".ASPXAUTH"
           path="/"
           requireSSL="false"
           slidingExpiration="true"
           defaultUrl="UserConfigSettings.aspx"
           cookieless="UseCookies"
           enableCrossAppRedirects="false" />
  </authentication>

  <!-- This section denies access to all files in this application except for those that you have not explicitly specified by using another setting. -->
  <authorization>
    <deny users ="?" />
    <allow users = "*" />
  </authorization>
</system.web>

<location path="Images">
  <system.web>
    <authorization>
      <allow users="?,*" />
    </authorization>
  </system.web>
</location>

<location path="Styles">
  <system.web>
    <authorization>
      <allow users="?,*" />
    </authorization>
  </system.web>
</location>

on my login form I have a hyperlink that redirected users to a registration page but since applying the above authorizations settings the link doesn’t work, until I log in then I get redirected to the registration page. Can i specifically set this link to redirect users not matter what authorization they have? Here’s my form code

<form id="form1" runat="server">
<div>
    <asp:Panel ID="panelHeaderImage" BorderWidth="1" runat="server" width="660" >
        <table class="Table">
            <tr align="center">
            <td colspan="3"><img src="images/header.jpg" alt="some_text" /><br /><br /></td>
            </tr>
            <tr valign="top">
                <td colspan="3"><asp:Panel ID="panelNavigation" CssClass="Panel" runat="server" HorizontalAlign="Center" Width="650px"></asp:Panel> </td>
            </tr>
            <tr valign="top">
                <td align="right">
                    <asp:Label ID="lblUserName" CssClass="Label_Med_Bold" runat="server" Text="User Name:"></asp:Label>
                </td>
                <td align="left">
                    <asp:textbox id="txtUserName" runat="server" width="180px"></asp:textbox>
                    <asp:requiredfieldvalidator id="rvUserValidator" runat="server" controltovalidate="txtUserName"  CssClass="Label_Small_Red" errormessage="Please enter a Username" display="Dynamic"></asp:requiredfieldvalidator>
                </td>
            </tr>
            <tr valign="top">
                <td align="right">
                    <asp:Label ID="lblPassword" CssClass="Label_Med_Bold" runat="server" Text="Password:"></asp:Label>
                </td>
                <td align="left">
                    <asp:textbox id="txtPassword" runat="server" width="180px" textmode="Password"></asp:textbox>
                    <asp:requiredfieldvalidator id="rvPasswordValidator" runat="server" controltovalidate="txtPassword" CssClass="Label_Small_Red" errormessage="Please enter a Password" display="Dynamic"></asp:requiredfieldvalidator>
                </td>
            </tr>
        </table>
        <table width="650" class="Table">
            <tr valign="top">
                <td align="right" class="special_column1">
                    <asp:Label ID="lblSaveResult" runat="server" CssClass="Label_Red_Bold" Text=""></asp:Label>
                </td>
                <td align="left">
                    <asp:button id="btnLogin" CssClass="Button_Main" runat="server" text="Login" borderstyle="Solid" onclick="btnLogin_Click"></asp:button>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:hyperlink id="hl_Register" CssClass="hyperlink" runat="server" Enabled="true" navigateurl="Administration.aspx">New User?...Register Here</asp:hyperlink>
                </td>
            </tr>
        </table>                       
    </asp:Panel>
</div>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:36:44+00:00Added an answer on June 4, 2026 at 7:36 pm

    Yes, you just need an additional Location section in your web.config that allows access to the registration page only:

    <location path="Administration.aspx"> 
      <system.web> 
        <authorization> 
          <allow users="?,*" /> 
        </authorization> 
      </system.web> 
    </location> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC 3 application with the following web.config settings. <authentication mode=Forms>
I have the following settings in my web.config: <configSections> <sectionGroup name=elmah> <section name=security requirePermission=false
I have the following settings: Web.config Authentication Mode = Windows Virtual Directory -> Enable
I have the following tag in my ASP.NET Web.config application: <add name=monitorEntities connectionString=metadata=res://*/Models.MonitorDB.csdl|res://*/Models.MonitorDB.ssdl|res://*/Models.MonitorDB.msl;provider=System.Data.SQLite;provider connection
So, I have the following in the web.config <authentication mode=Windows/> <authorization> <allow users=domain\johndoe />
I have the following in my web.config <connectionStrings> <add name=ActiveDirectoryConnection connectionString=LDAP://ActiveDirectoryDomain1.com providerName=System.Web.Security.ActiveDirectoryMembershipProvider/> </connectionStrings> I
Moved to ef 4.3 with AutomaticMigrationsEnabled = true; In web.config have the following settings:
i have the following piece of code my my web.config: <customErrors mode=On defaultRedirect=~/Exception.aspx enableVersionHeader=false>
I have the following setup: ASP.net 3.5 Web Site Project C# Class Library with
I have the following settings in my web.config file. It basically restricts access to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.