javascript

Oct 17, 2007 at 7:03 AM
how to convert the below code in javascript when the image is clicked
protected void imgMap_Click(object sender, ImageClickEventArgs e)
{

SharpMap.Geometries.Point ClickPnt = myMap.ImageToWorld(new System.Drawing.Point(e.X, e.Y));

if (rblMapTools.SelectedValue == "3")
{

SharpMap.Data.FeatureDataSet ds = new SharpMap.Data.FeatureDataSet();
VectorLayer layer = myMap.Layers0 as SharpMap.Layers.VectorLayer;
layer.DataSource.Open();
layer.DataSource.ExecuteIntersectionQuery(ClickPnt.GetBoundingBox(), ds);
layer.DataSource.Close();
GridView1.DataSource = ds.Tables0;
GridView1.DataBind();
}

GenerateMap();
}

Thanks in advance