title: Call JavaScript function while the asp:LinkButton been clicked
body: <p>Just wondering, could it be possible call a JavaScript under asp:LinkButton while it been clicked.</p>
  
  <p>Example:
  I have the following code that I would like it to be calling a JavaScript function (test()), when it been clicked. How could I do it?</p>
  
  <pre><code>    &lt;asp:ListView ID="lvTest" runat="server" DataSourceID="dsTest" DataKeyNames="TestID"
      OnItemCommand="lvTest_ItemCommand"&gt;
      &lt;LayoutTemplate&gt;
        &lt;ul style="color:#fe8113;"&gt;
          &lt;asp:PlaceHolder ID="itemPlaceholder" runat="server" /&gt;
        &lt;/ul&gt;
      &lt;/LayoutTemplate&gt;
      &lt;ItemTemplate&gt;
        &lt;li&gt;
          &lt;asp:LinkButton runat="server" CausesValidation="true" CommandName="" CssClass="orange"
            Text='&lt;%# Eval("TestName")%&gt;'/&gt;
        &lt;/li&gt;
      &lt;/ItemTemplate&gt;
    &lt;/asp:ListView&gt;
  </code></pre>