title: Call a function on Button OnClick
body: <p>is there a way to call a function in asp.net using c# from code behind when a button is clicked. </p>
  
  <p>Example in code behind i have a button, </p>
  
  <pre><code>Button btnRemove = new Button();
  </code></pre>
  
  <p>btnremove.OnClientclick = Remove(ID) something like that??</p>
  
  <p>I want to call a function</p>
  
  <pre><code>public void Remove(int ID)
  {
  
  }
  </code></pre>
  
  <p>Thank you in advance!!</p>