System.Web.UI.WebControls.ICallbackContainer.GetCallbackScript Method

Creates a script for initiating a client callback to a Web server.

Syntax

public string GetCallbackScript (IButtonControl control, string argument)

Parameters

control
Documentation for this section has not yet been entered.
argument
The arguments used to build the callback script.

Returns

A script that, when run on a client, will initiate a callback to the Web server.

Remarks

Implementations of the ICallbackContainer.GetCallbackScript(IButtonControl, string) method should return a script that, when run on the client, will initiate a callback to the Web server.

The argument parameter is passed to the System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(string) method that handles the callback.

For more information on creating callbacks, see Implementing Client Callbacks Without Postbacks in ASP.NET Web Pages.

Requirements

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