I have developed the web application for displaying the maps inASP.NET using Atlas and Google Maps API. The map is working fine there. Now, I have to migrate the Atlas web application toASP.NET Ajax. Migration has been performed successfully and code is building without errors. While running, Web Service isn't called. I am calling the web service method from Javascript. In another test application (without Google Maps API), I have called the web method from Javascript. Is there any problem due to Google Maps API. Apparently, it seems fine. If any one know about this issue, please let me know.
Thanks in advance.
Best Regards
Webservices now have to be flagged with the [ScriptService] attribute in order to be used, have you made that change?
Yes, I have made that change. In the script manager tags, now js file needs to be mentioned. I also mention that using script reference tag.
I have a problem adding points to a yahoo map with a webservice using asp.net ajax as well. It seems like the oncomplete event is not being "waited for" and I am trying to plot to an array that has no contents. If i trigger the event a second later after i have my webservice response it works fine :) try doing alert() to check to see if something is being received..In my case my x coordinate array wasnt populated by the time i got to my addmarker event linked to a button click but my ycoor and name of the point were populated. I have resorted to making the web service call on load but it is definitely not a best practice scenario.
-Scott
No comments:
Post a Comment