System.Web.UI.WebControls.ImageMap.Target Property

Gets or sets the target window or frame that displays the Web page content linked to when the System.Web.UI.WebControls.ImageMap control is clicked.

Syntax

[System.ComponentModel.DefaultValue("")]
public virtual string Target { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ImageMap.Target property to specify the frame or window that displays the Web page r when the System.Web.UI.WebControls.ImageMap control is clicked. The Web page is specified by setting the Image.ImageUrl property.

The ImageMap.Target property is used when the value of the ImageMap.HotSpotMode property is HotSpotMode.Navigate; it is ignored when the value of the ImageMap.HotSpotMode property is HotSpotMode.PostBack.

If the ImageMap.Target property is not set, the browser or window with focus refreshes when the System.Web.UI.WebControls.ImageMap control is clicked.

Note:

The ImageMap.Target property renders as a target attribute. The target attribute on anchor elements is not allowed in the XHTML 1.1 document type definition. Do not set the ImageMap.Target property if the rendered output for the System.Web.UI.WebControls.ImageMap must be XHTML 1.1-compliant. For more information, see ASP.NET and XHTML Compliance.

When creating accessible Web pages, it is strongly recommended that you avoid using the ImageMap.Target property to target another window. For more information, see Accessibility in Visual Studio 2010 and ASP.NET 4 and ASP.NET Controls and Accessibility.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0