I have a newbie question.
If in my asp.net application I need to query the database and get a set of Google markers to display on the map. I’m new to web development, so I’m not sure how the data can be passed from asp.net to JavaScript. Is it done with a WebService called from the JavaScript or is there another way to do it ? I’m probably misunderstanding some major concepts. As well, is there a way to pass data from JavaScript to asp.net application (e.g. something was don on the Google map and the data should be stored to the database on the back-end). If this is too basic, any links will be appreciated. Thanks !
I have a newbie question. If in my asp.net application I need to query
Share
Well, this is how I would do it (FYI, this relies heavily on the JQuery javascript library):
<div>where your map will be displayed.$.ajaxcall to a WCF or ASMX web service that returns JSON representing your marker data.Here is a rough cut at some code:
example json returned from mapquery.asmx: