Skip to content Skip to sidebar Skip to footer

Href Links To Subfolders

I searched and feel this is an elementary questions but I can't think straight I guess. So I have a simple subfolder in my website and pages I need to get to like this.

Solution 1:

Try this:

<a href="~/Default.aspx" runat="server">Home</a>

<a href="~/Subfolder/help.aspx" runat="server">Help</a>

Now, each link will resolve on the server-side, from the project root downwards.


Solution 2:


Post a Comment for "Href Links To Subfolders"