Home > DeveloperSection > Forums > Hyperlink not navigating to the predefined URL in asp.net
Chintoo Semi

Total Post:135

Points:947
Posted on    November-17-2014 11:18 PM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 562  View(s)
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>



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    November-17-2014 11:42 PM

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>


Don't want to miss updates? Please click the below button!

Follow MindStick