Raises the Button.Click event of the System.Web.UI.WebControls.Button control.
The Button.Click event is raised when the System.Web.UI.WebControls.Button control is clicked. This event is commonly used when no command name is associated with the System.Web.UI.WebControls.Button control (for instance, with a Submit button).
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The Button.OnClick(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.