VDS Technologies

 

html Image not shown in Mozilla

10/22/2013 3:56:03 AM
Total Posts 50

html Image not shown in Mozilla

Hello,

I add html image in marker but not shown in Mozilla. What the mistake on it?

my code:

 Dim image As MarkerSymbol = New MarkerSymbol(pinimage, 25, 35)

Dim tooltip As String = "<b>NoPel:</b> " & rsNow("Inst_Key").ToString & "<br><b>NoMeter:</b> " & rsNow("Meter_key").ToString & "<br>Size:</b> " & rsNow("Size").ToString & "<br><b> Install_date</b>" & rsNow("Install_date").ToString & "<br/><img src=" & rsNow("Photo1").ToString() & """ width=""100px"" heigth=""150px""> "

Dim html As String = "<b>NoPel:</b> " & rsNow("Inst_Key").ToString & "<br><b>NoMeter:</b> " & rsNow("Meter_key").ToString & "<br>Size:</b> " & rsNow("Size").ToString & "<br><b> Install_date</b>" & rsNow("Install_date").ToString & "<br/><img src=" & rsNow("Photo1").ToString() & """ width=""100"" heigth=""150""> "

Dim marker As AspMap.Web.Marker = New AspMap.Web.Marker(map.CoordinateSystem.FromWgs84(PcenterPoint), image, tooltip, html)

map.Markers.Add(marker)

 

10/22/2013 10:16:48 AM
MVP
Total Posts 323

Re: html Image not shown in Mozilla

Probably,   <img src=" should be replaced with <img src="""

10/23/2013 6:45:45 AM
Total Posts 50

Re: html Image not shown in Mozilla

Thank you. you're correct. the problem is in src="""