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




A drop down box on a tool bar.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class DropDownBox 
   Inherits InteractiveToolbarItem
Visual Basic (Usage)Copy Code
Dim instance As DropDownBox
C# 
[SerializableAttribute()]
public class DropDownBox : InteractiveToolbarItem 

Remarks

The DropDownBox appears similar to a standard ASP.NET DropDownList, but it resides on a Toolbar and inherits from InteractiveToolbarItem , so that it can interact with the map or layout using client callbacks. A typical use is to provide a list of options, so that when one is chosen, an action occurs on the map. For example, a list of named extents may be included in the DropDownBox, and when the user picks one, the map immediately jumps to the extent matching the name.

The DropDownBox executes code in a class that implements IMapServerDropDownBoxAction. This class is specified as the ServerActionClass of the DropDownBox in the Toolbar. This property may be specified in the Toolbar designer in Visual Studio. For an example of using a DropDownBox, see the Common_AddCustomTool sample in the SDK Web Applications samples (also available at the ArcGIS Resource Center:http).

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.Web.UI.WebControls.ToolbarItem
      ESRI.ArcGIS.ADF.Web.UI.WebControls.InteractiveToolbarItem
         ESRI.ArcGIS.ADF.Web.UI.WebControls.DropDownBox

See Also

© 2010 All Rights Reserved.