The controls which the toolbar is buddied, either Map or PageLayout controls.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ToolbarItemInfo
Dim value() As WebControl
value = instance.BuddyControls
instance.BuddyControls = value |
Example
This code obtains a reference to a Map to which the Toolbar is buddied in order to zoom the map to full extent.
In the code, info is the ToolbarItemInfo passed to the ServerAction from a command. The code assumes that the Toolbar is buddied to a Map control.
C# | Copy Code |
---|
ESRI.ArcGIS.ADF.Web.UI.WebControls.Map mapctrl =
(ESRI.ArcGIS.ADF.Web.UI.WebControls.Map)info.BuddyControls[0];
mapctrl.ZoomToFullExtent(); |
Visual Basic | Copy Code |
---|
Dim mapctrl As ESRI.ArcGIS.ADF.Web.UI.WebControls.Map
mapctrl = CType(info.BuddyControls(0), ESRI.ArcGIS.ADF.Web.UI.WebControls.Map)
mapctrl.ZoomToFullExtent() |
Remarks
Requirements
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
See Also