title: Setting LinkButton's OnClick event to method in codebehind
body: <p>I'm constructing a LinkButton from my codebehind, and I need to assign the onclick to a method, and pass a parameter with it too. I have this so far:</p>
  
  <pre><code>LinkButton lnkdel = new LinkButton();
  lnkdel.Text = "Delete";
  </code></pre>
  
  <p>The method I want to pass it to looks like this:</p>
  
  <pre><code> protected void delline(string id)
          {
  
          }
  </code></pre>