Anchor tag's onClick is not working
<p>I am creating an anchor tag on the fly. It gets created, but for some reason the <code>onClick</code> is not working.</p>

<p><strong>Here is my generation code:</strong></p>

<pre class="lang-cs prettyprint-override"><code>HtmlGenericControl emailsubject = new HtmlGenericControl("div");
emailsubject.ID = count++ + "emailSubject";
emailsubject.InnerHtml = "Subject: " 
    + "&lt;a id=\"summa\" href=\"#\" onClick=\"subject_Click();\"&gt;" 
    + results2["EmailSubject"].ToString() 
    + "&lt;/a&gt;";
</code></pre>

<p><strong>Here is my <code>onClick</code> function:</strong></p>

<pre class="lang-cs prettyprint-override"><code>public void subject_Click()
{
    Response.Write("Clicked");
}
</code></pre>
