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