HYPERLINK NOT NAVIGATING TO THE PREDEFINED URL IN ASP.NET

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
 992  View(s)
Ratings:
Rate this:

I have a hyperlink that does not navigate to the set URL. It is dead simple I have no idea what is wrong. The link in my aspx page: 

<asp:HyperLink ID="HyperLinkLostPass"runat="server"  
   Text="Forgot username or password?" NavigateUrl="~/test.aspx" Target="_self">    </asp:HyperLink>

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Hyperlink not navigating to the predefined URL in asp.net

    Hi Chintoo, 


    You can solve this by adding the following to your web.config file:

      <location path="test.aspx">
        <system.web>
          <authorization>
            <allow users="*"/>
          </authorization>
        </system.web>
      </location>

      Modified On Apr-06-2018 06:36:43 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!