ESRI.ArcGIS.ADF.Web.UI.WebControls
TaskResults Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : TaskResults Class




Accepts and displays the results of tasks in the Web ADF.

Object Model











Syntax

Visual Basic (Declaration) 
<ClientScriptResourceAttribute(ComponentType="ESRI.WebControls.TaskResults", 
   LoadOrder=2, 
   ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.TaskResults.release.js")>
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.TaskResultsDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ToolboxBitmapAttribute()>
<ToolboxDataAttribute("<{0}:TaskResults runat="server" Width="200px" Height="200px" BackColor="#ffffff" Font-Names="Verdana" Font-Size="8pt" ForeColor="#000000"> </{0}:TaskResults>")>
<DefaultPropertyAttribute("Map")>
Public Class TaskResults 
   Inherits TreeViewPlus
   Implements IBuddyControlSupportITaskResultsContainerITreeViewPlusNodeContainer 
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
C# 
[ClientScriptResourceAttribute(ComponentType="ESRI.WebControls.TaskResults", 
   LoadOrder=2, 
   ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.TaskResults.release.js")]
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.TaskResultsDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ToolboxBitmapAttribute()]
[ToolboxDataAttribute("<{0}:TaskResults runat="server" Width="200px" Height="200px" BackColor="#ffffff" Font-Names="Verdana" Font-Size="8pt" ForeColor="#000000"> </{0}:TaskResults>")]
[DefaultPropertyAttribute("Map")]
public class TaskResults : TreeViewPlus, IBuddyControlSupportITaskResultsContainerITreeViewPlusNodeContainer  

Remarks

Tasks in the Web ADF typically output information for display to the user. Examples are attributes of features returned from a query, or location information from a geocoding operation. The task can send these results to a TaskResults control for display.

TaskResults displays the results in a hierarchical way. It extends TreeViewPlus and uses a tree approach to display data sets and tables. TaskResults can accept multiple results sets from different tasks or from repeating the same task.

If the results contain a graphic layer (FeatureGraphicsLayer), a checkbox automatically displays next to each feature. When the box is checked, the feature is displayed on an associated Map control. This requires that the TaskResult's Map property be set to the ID of a Map control on the page.

When the user right-clicks on a node in TaskResults, a context menu displays for interacting with the results.

  • The TaskResultContextMenu is the context menu for the top-level results of a task, and by default has choices to refresh the task, to run the task again, and to remove the task results.
  • The GraphicsLayerContextMenu is used for the second-level layer node when the node represents a graphics layer, and by default has choices to zoom to selected features and to remove the layer.
  • The FeatureContextMenu is used for the third-level nodes for individual features. By default it has choices to zoom to the feature, pan to the feature, and remove the feature from the results set.
  • The RemoveOnlyContextMenu is used for results that have no features, such as a SimpleTaskResult that reports that no features were found as a result of the task.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         System.Web.UI.WebControls.CompositeControl
            ESRI.ArcGIS.ADF.Web.UI.WebControls.CompositeControl
               ESRI.ArcGIS.ADF.Web.UI.WebControls.TreeViewPlus
                  ESRI.ArcGIS.ADF.Web.UI.WebControls.TaskResults

See Also

© 2010 All Rights Reserved.