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 HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 2:31 AM EDT
I have modified your code. Please find the attache file.
Regards,
Iftikar
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 22, 2013, 2:40 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 2:42 AM EDT
Regards,
Iftikar
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 22, 2013, 2:49 AM EDT
var markers = $("#<%= DdlSubProduct.ClientID %>").val();
with
var markers = $("#<%= DropDownList1.ClientID %>").val();
its not giving anny error..but map isnt loading with marker
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 22, 2013, 2:52 AM EDT
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 = $("#").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.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 2:53 AM EDT
alert(markers);
Regards,
Iftikar
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 22, 2013, 3:13 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 3:19 AM EDT
and remove it from aspx
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts