Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to make a suggest textbox like http://sindelantal.com/[^] using google api like they do. I've been reading about it, but I cant make it in aspnet...Does anybody has an example or a page where I can learn more?

thank you
Posted

1 solution

I found the answer using this script

XML
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=places&language=es">
$(document).ready(function() {


        var autocomplete = document.getElementById(&#39;ctl00_ContentPlaceHolder2_txtbuscar&#39;);
            var options = {
                //types: [&#39;(cities)&#39;],
                componentRestrictions: { country: &#39;es&#39; }
            };

            autocomplete = new google.maps.places.Autocomplete(autocomplete, options);

        }
        )</script>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900