I need to set the drawmode immediately after postback.
openMarker() in the following code = Map1.SetDrawMode('Point');
if (((Button)sender).Text.ToUpper().Contains("ANOTHER"))
{
ClientScript.RegisterStartupScript(GetType(), "AddAnotherMarker", "openMarker();", true);
}
When I do this, it looks like there is a js error as the map turns grey. The error is:
Uncaught TypeError: Object #<HTMLDivElement> has no method 'SetDrawMode'
Any ideas on what I can do to set the drawmode after a postback?