Thursday, August 7, 2008

Loading Gmap from serverside

string lat = "",lat = "";


private void loadmap()
{

HtmlGenericControl Body = this.Master.FindControl("myBody") as HtmlGenericControl;
try
{
if (Body != null)
{
string loadString = "mapload('" + lat + "','" + lng + "','NameOfLocation','./Image/Image.jpg')";
Body.Attributes.Add("onLoad", loadString);
Body.Attributes.Add("onunload", "GUnload()");
}
}
catch (Exception ex)
{
Response.Write("Error:" + ex.ToString());
}
}


-
ShriKrishna Bhardwaj , With ASP.Net, SQL Server, Javascript

No comments: