He can use asp code in his map source as long as the map code is
embedded in the file and the files is ending in .asp.

Or if he includes his map source file with an ASP extension like
map.asp

I do this on my site to process different city sets and it's a neat
trick.



On Nov 12, 1:43 pm, "Neil.Young" <[EMAIL PROTECTED]> wrote:
> //////> var polyOptions = {geodesic:true};
> >    var polygon = new GPolygon([  new GLatLng(<%=Recordset1.Fields.Item
> > ("X").Value%>,<%=Recordset1.Fields.Item("Y").Value%>) ], "#EAEABF", 3,
> > 1, "#ff0000", 0.2);
> > map.addOverlay(polygon);
> > ///////
>
> That looks to me as you are mixing server side code (aspx) with client
> side code, do you? That can't work. What you could do is to create the
> JS server side while "injecting" 500 rows like the one, which you are
> filled with server side code, but somewhat "hardcoded" with the data,
> retrieved from your dataset. Or you think about loading your data
> separately from your server using AJAX and JSONP (google for this). Both
> approaches will work, you can choose.
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to