![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
IPageServerCommandAction Interface | |
Members See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace : IPageServerCommandAction Interface |
Visual Basic (Declaration) | |
---|---|
Public Interface IPageServerCommandAction Inherits IServerAction |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IPageServerCommandAction |
C# | |
---|---|
public interface IPageServerCommandAction : IServerAction |
In order for a Command to perform an action on the server for a PageLayout, a class must be created that implements this interface. The Command then sets its ServerActionClass to this class, typically at design time in the toolbar items editor.
The class implements the ServerAction method. This method handles the server-side action. This method receives one argument, a ToolbarItemInfo object. This object contains information about the item, toolbar and buddy controls of the toolbar. The buddy controls collection may be used to obtain a reference to the PageLayout, as discussed at ToolbarItemInfo.BuddyControls.
The following sample implements IMapServerCommandAction, which is similar to IPageServerCommandAction: the Common_AddCustomTool sample in the SDK Web Applications samples (also available at ArcGIS Resource Center).
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