ESRI.ArcGIS.ADF.Web.UI.WebControls
CallbackResult Constructor(Control,String,Object[])
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > CallbackResult Class > CallbackResult Constructor : CallbackResult Constructor(Control,String,Object[])




control
Web control whose content or image source to replace. Set to null (Nothing) if returning JavaScript in the callback result.
eventArg
Type of information being sent in the parameters. One of: content, innercontent, image, or javascript.
parameters
Value of the content, image source, or javascript to send to browser.
Creates a CallbackResult object to pass information to the browser.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal control As Control, _
   ByVal eventArg As String, _
   ByVal ParamArray parameters() As Object _
)
Visual Basic (Usage)Copy Code
Dim control As Control
Dim eventArg As String
Dim parameters() As Object
 
Dim instance As CallbackResult(control, eventArg, parameters)
C# 
public CallbackResult( 
   Control control,
   string eventArg,
   params object[] parameters
)

Parameters

control
Web control whose content or image source to replace. Set to null (Nothing) if returning JavaScript in the callback result.
eventArg
Type of information being sent in the parameters. One of: content, innercontent, image, or javascript.
parameters
Value of the content, image source, or javascript to send to browser.

Remarks

If the page element that will receive the content of the CallbackResult is a Web control (i.e., extends System.Web.UI.WebControl), this constructor may be used. However, if you need to target other types of content on the page, such as a plain HTML element (<div>, <span>, <table>, etc.), then use the constructor that accepts an ID and type.

See Also

© 2010 All Rights Reserved.