Using HtmlAnchor for anchor tag that navigates in-page named anchor
- by Frank Schwieterman
I am trying to render a simple hyperlink that links to a named anchor within the page, for example:
<a href="#namedAnchor"scroll to down</a
<a name="namedAnchor"down</a
The problem is that when I use an ASP.NET control like asp:HyperLink or HtmlAnchor, the href="#namedAnchor" is rendered as href="controls/#namedAnchor" (where…