I have a onclick event that is like:
public void OnMyButton_Click(object sender, EventArgs e)
How can I call this from within pageload?
Refactor the code from inside the click event handler to a separate method and call the new method.