Links rendering as empty hrefs. Anybody seen this?

B

Brian Vallelunga

So I have a strange problem. Given a folder struction like:

/test/default.aspx
/test/default2.aspx

If I have a link in the default2.aspx page that looks like this:

<a href='~/test/' runat='server'>Root</a> (or asp:hyperlink, it doesn't
matter)

On default2.aspx it will render as <a href="">Root</a>

Has anyone seen this before? This is not correct and it should render
to "./" or "/test/".

An empty href points to the current page so it won't take the viewer
back up to /test/

I couldn't find any info on this online.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top