title: jQuery - attach event handler for linkButton
body: <p>I have a user control. It contrains LinkButton. I want to attach an click event to the LinkButton using jquery.</p>
  
  <pre><code>&lt;%@ Control AutoEventWireup="true" CodeBehind="Pager.ascx.cs" EnableViewState="true" Inherits="Web.Controls.Pager" Language="C#" ViewStateMode="Enabled" %&gt;
  
  &lt;script type="text/javascript"&gt;
      $(function () {
          eval($('#LinkButtonFirst').attr('href')).bind('click', 
          function () {
              alert('fsfsf'); 
          });
      });
  &lt;/script&gt;
  &lt;asp:LinkButton ID="LinkButtonFirst" runat="server" OnClick="LinkButtonFirst_Click" /&gt;
  </code></pre>
  
  <p>The first error I've encountered is <code>Cannot call method 'bind' of undefined</code>.<br>
  But the Master Page already  have link to jquery<br>
  <code>&lt;script src="/Scripts/jquery/jquery-1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt;</code></p>