ImageMap Control

ImageMap Control

Previous Home Next

 

The ASP.Net Imagemap control provides the functionality to display the image defined with special regions that can be clicked by the user to navigate to other page or perform the PostBack event. The Imagemap control is a combination of two types of server elements. The first element is an Image that provides the properties of ASP.Net Image control to display the image on the web page. The second element is hotspot or collection of hotspots which enable you to define the special hotspot regions on the associated image that can be clicked by the user to navigate or send the web page to the server. The HotSpot regions of ASP.Net Imagemap controls defines the shapes based on the x and y axis to specify the location of the hotspot on the image. You can define the three types of hotspots for the imagemap control that represent the specific shapes such as circle, rectangle and polygon.
Properties:
1.AlternateText: It allows you to specify the alternate text value for the image.
2. DescriptionUrl: You can specify the URL of the web page containing the full description about the image to the DescriptionUrl property of Imagemap control.
3. GenerateEmptyAlternateText: It accepts the Boolean value such as true or false that allows or disallows the generation of empty alternate text property in the HTML source code.
4. HotSpotMode: This property accepts one of the names of the predefined HotSpotModes that define the behavior of the Hotspot region of the Imagemap control. The predefined values are Inactive, Navigate, NotSet and PostBack.
5. ImageAlign: It enables you to set the alignment of the displayed image with respect to the other content or HTML elements placed inline to it.
6. ImageUrl: You can specify the URL of the image to this property that you want to display on web page.
7. Target: It allows you to specify the name of the target frame in which you want to open the navigation link.

 
  

  

 ImageMap
***********************************************************************
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="ImageMap.aspx.cs" Inherits="_Default" %>





    ImageMap


    
Previous Home Next