![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
GetCallbackResult Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > FloatingPanelTask Class : GetCallbackResult Method |
Visual Basic (Declaration) | |
---|---|
Public Overrides Function GetCallbackResult() As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As FloatingPanelTask Dim value As String value = instance.GetCallbackResult() |
C# | |
---|---|
public override string GetCallbackResult() |
Return Value
Results of the callback as a string.GetCallbackResult is a method required when using client callbacks (i.e., when the class implements ICallbackEventHandler). It returns a string to the browser, which the browser then processes to update content or provide interaction with the user.
This version of GetCallbackResult:
- Displays an activity indicator in the browser within the TaskResults that is buddied to the task, by calling the protected StartTaskActivityIndicator method;
-
Calls ExecuteTask to perform the task's work;
-
Calls the protected DisplayResults method to get the content required to update the task results on the client, and adds these results to the CallbackResults of the task; and
-
Returns the CallbackResults of the task as a string, which is passed to the client.
If you override GetCallbackResult, you should either call the base method to perform this work, or arrange to do the equivalent work in your own method.
A common reason to override GetCallbackResult is to store the _callbackArg values for later use. The user can right-click a result in TaskResults and choose to refresh or re-run the task. This option uses the Input object of the task, and assumes that the values used to execute the task are stored in Input. You can store the values from _callbackArg in Input to enable re-running the task. You should then access user input from Input within your ExecuteTask method, rather than from _callbackArg.
For discussion of callbacks in the Web ADF, see these references:
- The CallbackResult Class overview remarks.
- The topic Working with AJAX capabilities of the Web ADF in the Developer Help.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family