IPostBackEventHandler.RaisePostBackEvent Method

When implemented by a class, enables a server control to process an event raised when a form is posted to the server.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

void RaisePostBackEvent (
	String^ eventArgument
)
void RaisePostBackEvent (
	String eventArgument
)
function RaisePostBackEvent (
	eventArgument : String
)
Not applicable.

Parameters

eventArgument

A String that represents an optional event argument to be passed to the event handler.

The page passes the value of the eventArgument parameter to the RaisePostBackEvent method of the control that implements the IPostBackEventHandler interface. This control also renders the HTML element that causes the postback to occur. If the control renders client-side script for postback, the argument from the script is passed in the eventArgument parameter. If the postback is caused by a simple submit operation, the eventArgument parameter is a null reference (Nothing in Visual Basic).

This method provides the functionality for many events implemented by HTML and Web server controls.

The following code example defines a custom button server control that causes postback, captures the postback event using the RaisePostBackEvent method, and raises a Click event on the server.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: