title: Problems with asp:Button OnClick event
body: <p>Here is my button</p>
  
  <pre><code>&lt;asp:Button ID="myButton" Text="Click Me" OnClick="doSomething(10)" runat="server" /&gt;
  </code></pre>
  
  <p>Here is the server function</p>
  
  <pre><code>public void doSomething(int num)
  {
      int someOtherNum = 10 + num;
  }
  </code></pre>
  
  <p>When I try to compile the code I get the error "Method Name Expected" for the line:</p>
  
  <pre><code>&lt;asp:Button ID="myButton" Text="Click Me" OnClick="doSomething(10)" runat="server" /&gt;
  </code></pre>
  
  <p>What am I doing wrong? Am I not allowed to pass values to the server from an OnClick event?</p>