System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent Method

Processes a callback event that targets a control.

Syntax

public void RaiseCallbackEvent (string eventArgs)

Parameters

eventArgs
Documentation for this section has not yet been entered.

Remarks

When null 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 null and "null", you should avoid using null argument parameters with callbacks.

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

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0