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
' Do something With the selected value...
End Sub
End Class |
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