I am developing an ASP.NET web application that includes google maps. I have an ASP.NET list on my page that contains a list of items. When the user selects one of the elements, I would like to show this element on the map. The main difficulty is that google maps use javascript to manage it, and listbox is a server-side control.
I can come up with two ways to do this. The first will include a list that calls the javascript function when the user selects a new item. Then I can write this function to perform the necessary operations with the cards. Unfortunately, the OnSelectedIndexChanged property in the list does not support javascript functions.
The second includes wrapping the UpdatePanel around the list and getting the list to perform the postback. In the SelectedIndexChanged event in VB / C #, I would like to somehow make a call to the javascript function, which would then update the map.
Which solution can i use?
thanks
- Amr
source share