How do you get a server control HTMLAnchor to have href="#". It keeps resolving the "#" to the control path.
<a href="#" runat="server" />
resolves to: <a href="../ControlPath/#">
I can't seem to get a google search to give me the results i want so i figured i'd ask here.
EDIT: Syntax.
Removing the runat server is not an option. It's manipulated in the backend, this was just a simplification.
Best Answer
I had the same problem, here's how I could resolve it:
Original code
User control:
Code behind:
Output:
Updated code
User control:
Code behind:
Output: