Hello,
i have list of image button which operates on Map now one of those button needs Map_Click event.
So when this Imagebutton gets clicked i wrote this code
protected void btnPlotPointer_Click(object sender, ImageClickEventArgs e)
{
//Set the default feature of mouse pointer
mainMap.Click += new EventHandler<MapClickedEventArgs>(mainMap_Click);
}
But the Map click events not firing this way, i have try to check its functionality by putting the line in OnInit and Onload event of the page but nothing works.
If i assign the click event in aspx page everything works fine.
Am i missing anything here?
Thanks,
Badal