Anchoring from a link to label in a repeater
<p>I have a list on top of my page that has a few different countries on it. I need to have an #anchor that will pop half way down the page to the country picked. However the countries down the page are pulled from a Database and are listed by HyperLinks in a repeater. </p>

<pre><code>&lt;td align="center"&gt;
  &lt;ul style="list-style-type: none;"&gt;
     &lt;li&gt;&lt;a href="#USA"&gt;USA &lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#Canada"&gt;Canada &lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#Australia"&gt;Australia &lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/td&gt;
</code></pre>

<hr>

<pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"&gt;
  &lt;ItemTemplate&gt;
     &lt;asp:HyperLink ID="hlCountryName" runat="server" Style="color: #6D94B8; font-size: 20px; font-weight: bold; margin-bottom: 5px; padding-left: 10px;"&gt;&lt;/asp:HyperLink&gt;
</code></pre>

<p>And inside the DataList1_ItemDataBound method in the C# section I did:</p>

<pre><code>hlCountryName.Attributes.Add("href", "#" + drCountry[Common.Data.Country.Constants.countryName].ToString());
</code></pre>

<p>Yet when I click on the link at the top of the page I am not taken anywhere. I am wondering what I could be missing in my code? Or if I have miss understood how to do this altogether? Any help is appreciated. Thanks!</p>
