creating hyperlink dynamically
<p>i am trying to create a hyperlink from code-behind, but it is not creating it where i want it to be.</p>

<p>if i look at my souce code is creating somewhere else and from .aspx page it seems like everything is in place where it needs to be.</p>

<p>.aspx</p>

<pre><code>&lt;div class="AZ"&gt;
    &lt;ol class="AZlist"&gt;   
            &lt;asp:PlaceHolder runat="server" ID="AToZ"&gt;&lt;/asp:PlaceHolder&gt;  
    &lt;/ol&gt;
&lt;/div&gt;
</code></pre>

<p>.codebehind</p>

<pre><code>HyperLink links = new HyperLink();
links.Text =  "&lt;li&gt;" + CheckMe.ToString() + "&lt;/li&gt;";
links.NavigateUrl = "&lt;a href='#'" + CheckMe.ToString() + "&gt;";
ph.Controls.Add(links); 
</code></pre>

<p>source code:</p>

<p>....
....
...</p>

<pre><code>   &lt;div class="AZ"&gt;
    &lt;ol class="AZlist"&gt;
           // I WANT HYPERLINK HERE....!!!!!!!!!!!
    &lt;/ol&gt;
    &lt;br /&gt;
&lt;/div&gt;
 &lt;/li&gt;
</code></pre>

<p>but its creating outside the div area here</p>

<p><code>&lt;a href="#A"&gt;&lt;li&gt;A&lt;/li&gt;&lt;/a&gt;</code></p>
