I want to use repeater to populate anchors and links to that anchors dynamically.  

I know for statistic case we can do this:

```
<a href="#anchor">Link Text</a>

```

and the anchor :

```
<a name="anchor"></a>

```

Now, to create the link dynamically I use:

```
<asp:Repeater ID="LinkRepeater" runat="server">
 <ItemTemplate>
    <asp:HyperLink ID="HyperLink1" runat="server"  class="TopMenuBarLink" NavigateUrl='<%# Eval("Link")%>'>
      <%# Eval("Title")%>
    </asp:HyperLink>
  </ItemTemplate>
</asp:Repeater>

```

But when I run the program, on the website, use inspect element I get this for the links:

```
<a id="_ctl0_viewCompanies_LinkRepeater_HyperLink1_0" class="TopMenuBarLink" href="Mypath/MyAnchor">My title text</a>

```

How do I get it in the right form:

```
 <a id="_ctl0_viewCompanies_LinkRepeater_HyperLink1_0" class="TopMenuBarLink" href="#MyAnchor">My title text</a>

```