function sayHello()
{


    string url = "https://maps.googleapis.com/maps/api/geocode/json?address=+Dropdownlist1.Text+Dropdownlist2.Text+Dropdownlist3.Text+&sensor=false");
    WebRequest request = WebRequest.Create(url);
    using (WebResponse response = (HttpWebResponse)request.GetResponse())
    {

     using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8))
     {


    string address = document.getElementById(reader).ToString;
    float latitude;
    float longitude;

    //var geocoder = new google.maps.Geocoder();
    latitude = results[0].geometry.location.lat();
    longitude = results[0].geometry.location.lng();


    document.getElementById("TextBox1").Text = latitude;
    document.getElementById("TextBox2").Text = longitude;
     }
 }

Related posts

Recent Viewed