Event not getting fired in code behind
<pre><code>PnlImages.Controls.Add(new LiteralControl("  &lt;img id=\"img\" class=\"content\" src=\"" + url + "\" runat=\"server\" name=\"img\" onclick=\"return onClick(this);\" /&gt;"));


public void onClick(object sender)
{

}
</code></pre>

<p>debugger is not firing instead giving error "object expected".<br>
Please help.</p>
