title: asp.net onclick function is not working for a tag
body: <p>I have this aspx code</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
          &lt;div id="tabs"&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="#tabs-1" &gt;Today&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#tabs-2" runat="server" onclick="TodayTab_Click"&gt;Tomorrow&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#tabs-3"&gt;Any Date&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>although i have used <code>onclick</code> function, this function is not being fired,</p>
  
  <p>why please?7</p>
  
  <h3>this is the function and I make a break point on it</h3>
  
  <pre><code>protected void TodayTab_Click(object sender, EventArgs e) {
              int i = 9;
              i++;
          }
  </code></pre>
  
  <h3>edit2</h3>
  
  <p>You guys told me that I have to change my <code>a</code> tag to <code>asp:Hyperlink</code> and I did, but the function is still not being fired.</p>
  
  <p>and this is the updated code</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
          &lt;div id="tabs"&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="#tabs-1" &gt;Today&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;asp:Hyperlink href="#tabs-2" runat="server" onclick="TodayTab_Click"&gt;Tomorrow&lt;/asp:Hyperlink&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#tabs-3"&gt;Any Date&lt;/a&gt;&lt;/li&gt;
  </code></pre>