ESRI.ArcGIS.ADF.Web.UI.WebControls
ServerAction Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace > IServerAction Interface : ServerAction Method




info
Information about the tool bar item for which this server action takes place.
This is the method performed on the server for a tool, command, or drop-down box.

Syntax

Visual Basic (Declaration) 
Sub ServerAction( _
   ByVal info As ToolbarItemInfo _
) 
Visual Basic (Usage)Copy Code
Dim instance As IServerAction
Dim info As ToolbarItemInfo
 
instance.ServerAction(info)
C# 
void ServerAction( 
   ToolbarItemInfo info
)

Parameters

info
Information about the tool bar item for which this server action takes place.

Remarks

Classes that will be used as the ServerActionClass for a toolbar item must implement this method. The method performs the action on the server on behalf of the command or drop-down box. The action can include operations on the Map, querying a database, or any other server-side operation.

The ToolbarItemInfo that is passed as the argument to the ServerAction method contains information about:

  • the Name of the item on the toolbar
  • a reference to the Toolbar to which the item belongs
  • the web controls buddied to the toolbar, usually a Map or PageLayout

This information can be used to do such tasks as finding the command or drop-down box on the toolbar, or getting a reference to the Map in order to set its extent, perform a query, etc.

See Also

© 2010 All Rights Reserved.