ASP Net Controls ASP.Net Tutorial

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"  Inherits="ImageMapTest" %>



    ImageMap Test


    
    
    

ImageMap Control Test


                      runat="server" 
                  ImageUrl="http://www.rntsoft.com/style/logo.png" 
                  AlternateText="Menu" 
                  OnClick="imapMenu_Click" >
                                    NavigateUrl="Home.aspx"
                            AlternateText="Go to Home Page" 
                            Coordinates="3,3,3,39,156,39,158,18,60,18,41,3"/>
                                      HotSpotMode="PostBack" 
                              Left="115" 
                              PostBackValue="Home"
                              Right="154" 
                              Top="41" 
                              AlternateText="Go to the home page" />
                                      HotSpotMode="PostBack" 
                              Left="165" 
                              PostBackValue="Browse"
                              Right="220" 
                              Top="41" 
                              AlternateText="Browse our products" />
                                      Bottom="65" 
                              HotSpotMode="PostBack"
                              Left="232" 
                              PostBackValue="Search" 
                              Right="285" 
                              Top="41" />
                                      Bottom="65" 
                              Left="293"
                              Right="360" 
                              Top="41" />
    
    
    
    
    
    

    


File: Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ImageMapTest : System.Web.UI.Page
{
  protected void imapMenu_Click(object sender, ImageMapEventArgs e)
  {
    labMessage.Text = "You clicked " + e.PostBackValue;
  }
}