Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just curious, why do they need to be server side textbox? </p> <p>Their json result request can handle just about any query you can throw at it. Simply concatenate your text boxes into a search query separated by commas.</p> <pre><code>function callSearchService(credentials) { var searchString =document.getElementById('txtStreetNum').value + ' ' + document.getElementById('txtQueryStr').value + ' , ' + document.getElementById('txtQueryCity').value + ' , ' + document.getElementById('txtQueryState').value + ' , ' + document.getElementById('txtQueryPostal').value; var geocodeRequest = "http://dev.virtualearth.net/REST/v1/Locations?query=" + encodeURI(searchString) + "&amp;output=json&amp;jsonp=searchServiceCallback&amp;key=" + credentials; } </code></pre> <p>If for some reason, you really need to get the text from an asp.net text control (Maybe you want to pre-load it for a user), you can do it like this;</p> <pre><code>var aspTextBoxValue = '&lt;%=ASPTextBox.Text%&gt;'; </code></pre> <p>To make it add different pushpins for different query box's you will need to do a few things:</p> <ol> <li>Concatenate separate searchStrings per query (<code>callSearchService</code> for each query)</li> <li>Make geocodeRequests for each query.</li> <li>Parse each result object and display the pushpin as seen in <code>searchServiceCallback</code> in the following example:</li> </ol> <p>(Your example doesnt actually resemble and query / response parsing at all, here's one more suitable)</p> <p><a href="http://www.bingmapsportal.com/ISDK/AjaxV7#RESTServices1" rel="nofollow">Query and Response in Bing Maps</a></p> <p>Don't expect my syntax to be perfect, although it may be error free, I'm just getting you off on the right foot without doing it for you. :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload