The interface that must be implemented in order for a class to function as the
server-side action of a
DropDownBox.
Syntax
Visual Basic (Declaration) | |
---|
Public Interface IMapServerDropDownBoxAction
Inherits IServerAction |
Example
This example demonstrates how to obtain the value that the user selected in the
DropDownBox that called the server-side action. This code assumes that the Name of
the DropDownBox is set to "MyDropDownBox".
C# | Copy Code |
---|
public class MyDropDownBoxAction : IMapServerDropDownBoxAction { void IServerAction.ServerAction(ToolbarItemInfo info) { DropDownBox ddb = (DropDownBox)info.Toolbar.ToolbarItems.Find("MyDropDownBox"); string selectedDropDownValue = ddb.SelectedValue; // do something with the selected value... } } |
Visual Basic | Copy Code |
---|
Public Class MyDropDownBoxAction
Implements IMapServerDropDownBoxAction
Sub ServerAction(ByVal info As ToolbarItemInfo) _
Implements IServerAction.ServerAction
Dim ddb As DropDownBox = _
CType(info.Toolbar.ToolbarItems.Find("MyDropDownBox"), DropDownBox)
Dim selectedDropDownValue As String = ddb.SelectedValue
End Sub
End Class
|
Remarks
See Also