Nevron .NET Vision
Framework / Presentation Layer / Graphics / Interactivity Style / Custom HTML Map Area Attribute

In This Topic
    Custom HTML Map Area Attribute
    In This Topic

    Every object that has an interactivity style can have an associated custom HTML map area attribute. This attribute specifies custom script to be injected in the object AREA when the control is used in Web applications. The HTML map area attribute is represented by the NCustomMapAreaAttribute class. You assign a map area attribute to the object by creating an instance of this class and adding it to the InteractivityAttributes collection. For example:

    Copy Code
    NCustomMapAreaAttribute customMapAreaAttribute = new NCustomMapAreaAttribute();
    customMapAreaAttribute.JScriptAttribute = "OnClick = \"javascript:alert('You clicked on this object')\"";
    Visual Basic
    Copy Code
    Dim customMapAreaAttribute As New NCustomMapAreaAttribute
    customMapAreaAttribute.JScriptAttribute = "OnClick = 'javascript:alert('You clicked on this object')'"
    See Also