I debuged my code,it didn't throw System.IndexOutOfRangeException because I can make sure the datatable have one row and have "long". -_- How did you know my code??
2009/2/27 Mike Williams <nos...@econym.demon.co.uk>: > > Wasn't it Howard who wrote: > >>http://www.it181.com/placemarkview.aspx > > That page doesn't get as far as thinking about loading the Maps API. The > aspx crashes with System.IndexOutOfRangeException on this line: > string longitude = dt.Rows[0]["long"].ToString(); > > -- > http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---