i have got a dropdownlist..which is populated from databse..database contains lat/long ..i want to display the marker and infowindow using that dropdown selected data...i am stuck in here as evrytime it takes 1st data to display....
zip attached help....
amitesh,,,
Loading

Iftikar HussainPosted Aug 22, 2013, 7:19 AM
and remove it from aspx
Amitesh VermaPosted Aug 22, 2013, 7:13 AM
Iftikar HussainPosted Aug 22, 2013, 6:53 AM
alert(markers);
Regards,
Iftikar
Amitesh VermaPosted Aug 22, 2013, 6:52 AM
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0103: The name 'DdlSubProduct' does not exist in the current context
Source Error:
Line 23: { Line 24: Line 25: var markers = $("#<%= DdlSubProduct.ClientID %>").val(); Line 26: var tempArray=markers.split("|"); Line 27: var lat=tempArray[0];Source File: c:\Documents and Settings\Administrator\Desktop\googlemap\googlemap\Default.aspx Line: 25
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.
Amitesh VermaPosted Aug 22, 2013, 6:49 AM
var markers = $("#<%= DdlSubProduct.ClientID %>").val();
with
var markers = $("#<%= DropDownList1.ClientID %>").val();
its not giving anny error..but map isnt loading with marker
Iftikar HussainPosted Aug 22, 2013, 6:42 AM
Regards,
Iftikar
Amitesh VermaPosted Aug 22, 2013, 6:40 AM
Iftikar HussainPosted Aug 22, 2013, 6:31 AM
I have modified your code. Please find the attache file.
Regards,
Iftikar