What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 17470 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > ASP.NET > How to use Image-Map control in asp.net ? ...
Ranjeet_8

How to use Image-Map control in asp.net ?

 Code Snippet posted by: Ranjeet_8 | Posted on: 1/1/2013 | Category: ASP.NET Codes | Views: 431 | Status: [Member] | Points: 40 | Alert Moderator   


How to use Image-Map control in asp.net?
Add this code on ASPX design page

<%-- Set Your image location --%>
<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~/images/dog_cat.gif" HotSpotMode="PostBack">
<%-- Set image radius --%>
<asp:CircleHotSpot AlternateText="Dog" Radius="60" X="100" Y="52" PostBackValue="Dog" />
<asp:CircleHotSpot AlternateText="Cat" Radius="60" X="80" Y="120" PostBackValue="Cat" />
</asp:ImageMap>

Add this code on ASPX.CS page

protected void ImageMap1_Click(object sender, System.Web.UI.WebControls.ImageMapEventArgs e)
{
Response.Write("You Click " + e.PostBackValue);
}

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 11:12:00 AM