Inam N

Inam N

  • NA
  • 8
  • 2.5k

Embed Google map in ASP.Net without iframe

Dec 13 2015 11:47 PM
In my asp.net project im using googlemaps in iframe and its working fine. ie I have 3 address textbox, followed by zipcode and state textbox once i pass based on latitude and longitude it sets the direction in googlemaps.
 
I dont want IFrame to be used is there any alternative other than Iframe.
 
<table width="100%">
<tr><td class="my-padding"> <iframe frameborder="0" scrolling="no" marginheight="2" marginwidth="2" width="500" height="230"
src="https://maps.google.com/maps?h1=en&q=<%=txtaddress1.Text + ", " + txtaddress2.Text + ", " +txtaddress3.Text + ", " + txtpostcode.Text + ' ' + txtstate.Text %>&ie=UTF8&t=m&z=16&iwloc=B&output=embed"></iframe>
</td></tr>
</table>
 

Answers (4)