IPostBackEventHandler.RaisePostBackEvent Method

Button::IPostBackEventHandler::RaisePostBackEvent Method (String^)

.NET Framework (current version)

Raises events for the Button control when it posts back to the server.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

virtual void RaisePostBackEvent(
	String^ eventArgument
) sealed = IPostBackEventHandler::RaisePostBackEvent


Type: System::String^

The argument for the event.

This event is used internally by the Button control, when it is clicked, to raise a Click event, and if defined, a Command event.

The following code example demonstrates how to override the IPostBackEventHandler::RaisePostBackEvent method so that it always raises the OnClick event in a custom Button control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft