Javascript error on use of GoogleMarker

Feb 23, 2008 at 6:26 PM
Edited Feb 23, 2008 at 6:32 PM
Hello,

Version 2.9

When I add a marker from code-behind I get an javascript error when a postback is performed.
"Error: Expected indentifier, string or number"

This is the code causing the error:
GoogleMarker googleMarker = new GoogleMarker(to.ToString(), "Home");
googleMarker.Text = "Address: <input type=\"text\" name=\"address\"><input type=\"submit\" value=\"Search\" class=\"LinkButton\">";
gmpDrivingDirections.Markers.Add(googleMarker);

I tried using single quotes in the Text property but that didn't help.

Regards,

Jeroen
Coordinator
Feb 23, 2008 at 8:41 PM
Hi,
Will check this out.
Regards