views:

157

answers:

1

I have a virtual earth map which loads its Shapes (pushpins) from the Code Behind file (server side).

I also have a ticker which runs across the top of the map which shows the cities for which we have a pushpin. I want to add aN "onmouseover" event to the city name within the ticker, so that when the user hovers over the city, the corresponding description box pops up within the map.

So something like:

<span onmouseover="ShowTheInfoBox('shapeid';)>Chicago, IL</span>

I have javascript to do this already, however I do not know how to access the ShapeID. I can hard code it, I just don't know how to get the shapeID since it is internal and you can't set it server side.

Thanks guys!

A: 

Giving you Just a trick, hope will help in your scenario...
On selection(onclick) of particular city, store selected value in some hidden field in javascript, and then you can get this hidden field value in server side.

Muhammad Akhtar