Hi. I'm using an asp:ImageMap control (as shown below) and would like to create a RadToolTip for each ImageMap item (PolygonHotSpot), and use the AlternateText of the PolygonHotSpot to set the Text of the RadToolTip. Then the RadToolTip needs to be added to the page's controls. How do I do this in the code-behind using C#? Thank you.
<asp:ImageMap ID="ImageMap1" runat="server" HotSpotMode="NotSet" ImageUrl="NC-USA-113196.gif" > |
<asp:PolygonHotSpot Coordinates="531,235,531,231,529,228,529,225,530,221,528,218,526,214,522,211,519,213,515,216,511,215,508,211,507,207,504,203,502,202,501,203,497,204,497,206,496,207,494,206,493,204,490,206,488,204,487,201,485,199,483,200,477,254,526,255,528,250,532,245,533,240,531,235,531,235" AlternateText="Anson" /> |
<asp:PolygonHotSpot Coordinates="483,200,479,202,474,204,472,203,471,204,466,204,463,205,460,204,457,203,456,202,456,201,452,198,434,215,426,222,421,224,416,227,421,233,422,239,421,254,477,254,483,200,483,200,483,200" AlternateText="Union" /> |
<asp:PolygonHotSpot Coordinates="561,254,562,253,562,251,562,248,565,245,567,243,568,241,567,236,566,233,567,230,573,226,580,223,580,223,575,219,570,219,567,218,566,215,566,211,562,205,557,205,550,203,535,203,529,205,520,206,513,208,509,208,507,206,507,207,508,211,511,215,515,216,519,213,522,211,526,214,528,218,530,221,529,225,529,228,531,231,531,235,533,240,532,245,528,250,526,255,526,255,554,256,557,254,561,254,561,254" AlternateText="Richmond" /> |
</asp:ImageMap> |