protected void btnGetAddress_Click(object sender, EventArgs e) { Address address = _locationService.GetAddressFromLatLong(Convert.ToDouble(Latitude.Text), Convert.ToDouble(Longitude.Text)); if (address != null) { lblResult.Text = String.Format("{0}, {1} maps to the following address: {2}", Latitude.Text, Longitude.Text, address.FormattedAddress); } else { lblResult.Text = "No address found at that location."; } }