HtmlInputButton::OnServerClick Method (EventArgs^)
Raises the ServerClick event. This allows you to handle the event directly.
Assembly: System.Web (in System.Web.dll)
Parameters
- e
-
Type:
System::EventArgs^
A System::EventArgs that contains the event data.
The ServerClick event is raised when an HtmlInputButton control is clicked.
Note |
|---|
A Reset button does not raise the ServerClick event. |
When you create an HtmlInputButton delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see NIB: Events and Delegates.
The following code example demonstrates how to specify and code a handler for the ServerClick event. The event handler adds the values of the two text boxes on the page and displays the results.
Available since 1.1
