ESRI.ArcGIS.ADF.Web.UI.WebControls
ServerActionClass Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > InteractiveToolbarItem Class : ServerActionClass Property




The System.Type of the server action class including namespace.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("The System.Type of the server action class including namespace.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<ResCategoryAttribute("Server Action")>
Public Property ServerActionClass As String
Visual Basic (Usage)Copy Code
Dim instance As InteractiveToolbarItem
Dim value As String
 
instance.ServerActionClass = value
 
value = instance.ServerActionClass
C# 
[ResDescriptionAttribute("The System.Type of the server action class including namespace.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ResCategoryAttribute("Server Action")]
public string ServerActionClass {get; set;}

Example

ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapFullExtent

Remarks

This property contains the name of the class that handles the server-side action of the tool or command. The name must be fully qualified with the namespace of the class.

Several commonly used server actions are built into the Web ADF and may be used for a toolbar item. These actions are in ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools. Examples include MapZoomIn and MapPan. These actions implement one or more of the interfaces required to interact with the Map or PageLayout, such as IServerAction or IMapServerToolAction.

For custom toolbar items, the class is located in the assembly named in ServerActionAssembly. The ServerActionClass must specify the full qualified name of the class, including namespace. For example, if a custom class called MyCustomToolAction is created in the App_Code directory of the Web application, and is included in a namespace called CustomToolActions, then the ServerActionClass value would be "CustomToolActions.MyCustomToolAction", and the ServerActionAssembly would be App_Code. In order to work with the Map or PageLayout, the custom toolbar item must implement one of the tool interfaces discussed above.

A custom toolbar item may be used to perform only client-side actions, with no server action. In this case, only the ClientAction is specified, and no ServerActionClass or ServerActionAssembly is set.

See Also

© 2010 All Rights Reserved.