ICallbackEventHandler.RaiseCallbackEvent Method

Processes a callback event that targets a control.

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

void RaiseCallbackEvent (
	string eventArgument
void RaiseCallbackEvent (
	String eventArgument
function RaiseCallbackEvent (
	eventArgument : String
Not applicable.



A string that represents an event argument to pass to the event handler.

When a null reference (Nothing in Visual Basic) is used as the event argument parameter, the string is serialized to "null" and sent back to the server. Because there is no way to distinguish between a null reference (Nothing in Visual Basic) and "null", you should avoid using a null reference (Nothing in Visual Basic) argument parameters with callbacks.

Exceptions thrown in RaiseCallbackEvent will not prevent GetCallbackResult from being called and returning a result. To prevent GetCallbackResult from returning a result, set a flag when an exception is thrown in RaiseCallbackEvent and return an empty string from GetCallbackResult.

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

Community Additions