Set the text of my marker programatically

Aug 25, 2008 at 10:25 PM
Edited Aug 25, 2008 at 10:26 PM
I am trying to set the text of my marker programatically to no avail!  can someone help?

The following is not working for me! It goes to the correct address on the map but my marker popup is blank!

 

Dim streetaddress As String
streetaddress = CType(FormView1.FindControl("Address1Label"), Label).Text + " " + CType(FormView1.FindControl("Address2Label"), Label).Text + " " + CType(FormView1.FindControl("CityLabel"), Label).Text + " " + CType(FormView1.FindControl("StateLabel"), Label).Text + " " + CType(FormView1.FindControl("ZipLabel"), Label).Text
GoogleMap1.Address = streetaddress
GoogleMap1.Markers.Clear()
GoogleMap1.Markers.Add(
New GoogleMarker(streetaddress, "I GET AN ERROR FOR ADDING TEXT HERE!!))

 

 

 

Dec 23, 2008 at 9:45 AM

 

GoogleMarker marker = new GoogleMarker(42.1229, 24.7879);

 

marker.Text =

"my first marker";

 

marker.Title =

"title";

 

GoogleMap1.Markers.Add(marker);