Populate Google Maps using Location (Coordinates) in ASP.Net

on Oct 06, 2022 10:44 PM


I have below HTML context. On basis of Location i want to embed Google Map.

How it can be done.

BodyStr = "<html><head><title></title></head><body style='padding:0; margin:0;'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr><td><br/>Date <b>" + Utility.CurrentDateTime() + "</b> <br>"
+ "Dear Channel Partner," + "<br/> <br><br> training that was done last "  + " <b>" 
+ Convert.ToDateTime(objDetails.ToDate).ToString("dd-MM-yyyy") + " </b> , this letter has been made with the intention to acknowledge
that <b>" + ToName + "</b> <b> [ " + ParticipantName + "]</b> has successfully attended / Participated the <b>" + Course 
+"</b> that was conducted at <b>" + Location + "<b/> </td></tr></table></body></html>";


Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Oct 07, 2022 01:03 AM

Hi ramco1917,

Take a co-ordinate of location and add the google map.

Please refer below sample link.

ASP.Net: Populate Google Maps V3 with Multiple Markers using Address Latitude and Longitude values stored in database