RaiseCallbackEvent Method
.NET Framework Class Library
ICallbackEventHandler..::.RaiseCallbackEvent Method

Processes a callback event that targets a control.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)
Visual Basic (Declaration)
Sub RaiseCallbackEvent ( _
    eventArgument As String _
)
Visual Basic (Usage)
Dim instance As ICallbackEventHandler
Dim eventArgument As String

instance.RaiseCallbackEvent(eventArgument)
C#
void RaiseCallbackEvent(
    string eventArgument
)
Visual C++
void RaiseCallbackEvent(
    String^ eventArgument
)
JScript
function RaiseCallbackEvent(
    eventArgument : String
)

Parameters

eventArgument
Type: System..::.String
A string that represents an event argument to pass to the event handler.

When nullNothingnullptra 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 nullNothingnullptra null reference (Nothing in Visual Basic) and "null", you should avoid using nullNothingnullptra 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker