Google maps control from Subgurim RRS feed

  • Question

  • User1966266272 posted

     i'v been tryin to display location on google maps using lat/lng from a database.
    and i found this control is able to do that, but when i try i don see any  icon represent the location on the map, but the map loads
    my code is here

        <form id="form1" runat="server">
        <cc1:GMap ID="GMap1" runat="server" DataLatField="Lat" DataLngField="Lng" />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:mylocationsConnectionString %>" 
                SelectCommand="SELECT [Lat], [Lng] FROM [locations]">

    can anyone help me out to figureout what i am doing wrong


    Saturday, July 10, 2010 8:30 PM

All replies

  • User-324533553 posted

    dont know about the control but SelectCommand="SELECT [Lat], [Lng] FROM [locations]" should it be returning one record???!!

    meaning it should have where ....


    Sunday, July 11, 2010 3:04 AM
  • User1966266272 posted

     i don knw what ur tryin to say

    Sunday, July 11, 2010 7:08 PM