System.Web.UI.HtmlControls Namespace HtmlInputButton Class
Occurs when the HtmlInputButton control is clicked.
[ VB ]
Public Event ServerClick As EventHandler
[ C# ]
public event EventHandler ServerClick;
[ C++ ]
public: __event EventHandler* ServerClick;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The event handler receives an EventArgs containing data related to the ServerClick event.
The ServerClick event is raised each time the user clicks an HtmlInputButton control.
For more information about handling events, see Web Forms Events Model.
The following illustrates how to attach a handler to the onServerClick event of an HtmlInputButton control.
<input type=button id="Button1" value="Click me" runat="server"
onServerClick="saySomething">
Show me
HtmlInputButton Members