How can we define OnMouseOver Event for the ImageMap control(2.0)?

Platform: ASP.NET| Category: Controls

There is no predefined OnMouseOver Event.We can define as follows in the Page_Load Event.

protected void Page_Load(object sender, EventArgs e)
{
	ImageHotSpot.Attributes.Add('onmousemove', 'MouseOver()');
}

Where MouseOver() is the function to be defined in the ClientSide as follows


<script>
	function MouseOver()
	{
		alert('MouseMoveEvent');
	}
</script>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.