title: Anchor control in Literal
body: <pre><code>using System;
  
  namespace WebApplication1
  {
      public partial class _Default : System.Web.UI.Page
      {
  
          public void Download(object obj, EventArgs e)
          {
              Response.Write("abc");
          }
  
          protected void Page_Load(object sender, EventArgs e)
          {
              Literal1.Text = "&lt;a id='anc' href ='#' runat='server' onserverclick='Download'&gt;Click Me&lt;/a&gt;";
              Response.Write(Literal1.Text);
  
          }
      }
  }
  
   &lt;div&gt;
      &lt;asp:Literal ID="Literal1" runat="server"&gt;&lt;/asp:Literal&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I have the above code sniplet. I am trying to bind the anchor within the literal to a function in a following manner:  onserverclick = "Download"</p>
  
  <p>But the event is not firing. The requirement is that anchor is rendered through literal only.</p>
  
  <p>Please help.</p>