Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NWebControl Class / AjaxImageMapMode Property


In This Topic
    AjaxImageMapMode Property (NWebControl)
    In This Topic
    Gets / sets a value indicating wheather to genrate automatically an image map in AJAX mode. The value of this property is ignored if the the HttpHandlerCallback property of the web control is initialized. AjaxImageMapMode.Never is used instead.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("AJAX")>
    <System.ComponentModel.DescriptionAttribute("Controls the generation of an image map in AJAX mode. If you are not using image map, select "Never" to optimize the performance of the control. The value of this property is ignored if the the HttpHandlerCallback property of the web control is initialized. AjaxImageMapMode.Never is used instead.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property AjaxImageMapMode As AjaxImageMapMode
    'Usage
     
    
    Dim instance As NWebControl
    Dim value As AjaxImageMapMode
     
    instance.AjaxImageMapMode = value
     
    value = instance.AjaxImageMapMode
    [System.ComponentModel.Category("AJAX")]
    [System.ComponentModel.Description("Controls the generation of an image map in AJAX mode. If you are not using image map, select "Never" to optimize the performance of the control. The value of this property is ignored if the the HttpHandlerCallback property of the web control is initialized. AjaxImageMapMode.Never is used instead.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public AjaxImageMapMode AjaxImageMapMode {get; set;}
    Remarks

    If following behavior is to be expected for the different possible values of this property:

    Never - an image map is never generated.

    Auto - an image map is automatically generated for all built-in async commands (like "refresh" and "autoRefresh") and is sent to the client, but only if there are elements that will produce image map areas.

    Manual - no image map is automatically generated; a manually added image map will be sent to the client only if there are elements that will produce image map areas. See AsyncQueryCommandResult for details how to add an image map manually to the result of an async command.

    Always - an image map is allways generated and sent to the client - for all commands and regardless of whether image map areas are generated or not.

    For all values, except Never, an image map is generated once every time the web control is initially rendered. This image map is available at the client immediatly after the Nevron JavaScript callback service has been initialized.

    To add areas to the image map, initialize the InteractivityStyle property of the Style object of visual elements with an instance of the Nevron.GraphicsCore.NInteractivityStyle class.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also