Search This Blog

Tuesday, August 2, 2011

How to set src of the iframe from code behind c#,

use below code to set the source of the iframe from the code behind

google map api integration in using javascript

To generate the google map API key use below link:

After generating the key replace the word "Your_Key" with generated key.

Below images are pointing to simple example on "google map api  integration in using javascript".

 protected void Page_Load(object sender, EventArgs e)
        hdnLat.Value = "100";
        hdnLng.Value = "100";
    protected void btnSubmit_Click(object sender, EventArgs e)
        Response.Write("Latitude: " + hdnLat.Value + " Longitude: " + hdnLng.Value);

Popular Posts