ESRI.ArcGIS.ADF.Web.UI.WebControls
IPageServerDropDownBoxAction Interface
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace : IPageServerDropDownBoxAction Interface




The interface that must be implemented in order for a class to function as the server-side action of a DropDownBox used for a PageLayout.

Syntax

Visual Basic (Declaration) 
Public Interface IPageServerDropDownBoxAction 
   Inherits IServerAction 
Visual Basic (Usage)Copy Code
Dim instance As IPageServerDropDownBoxAction
C# 
public interface IPageServerDropDownBoxAction : IServerAction  

Remarks

In order for a DropDownBox to perform an action on the server for the page of a PageLayout, a class must be created that implements this interface. The DropDownBox 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 received 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 ServerAction method does not directly receive information about the item that the user selected in the DropDownBox. Instead, code must be used to obtain the value selected in the DropDownBox. See the Example in IMapServerDropDownBoxAction for an illustration of getting the selected value.

For another example of using the similar IMapServerDropDownBoxAction interface, see the Common_AddCustomTool sample in the SDK Web Applications samples (also available at the ArcGIS Resource Center:http).

See Also

© 2010 All Rights Reserved.