Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: GetBingHtml method in Maps helper emits literal tags in JavaScript; fails to load map [363]

$
0
0
To reproduce this issue, follow these steps:

1. In a Razor web site, install the latest ASP.NET Web Helpers Library version using NuGet.
2. On a CSHTML page that references JQuery, add the following. (Replace the API key below with your own.)

@Maps.GetBingHtml("Av2RVhcYgg4FaKlj1uvfJIwfLtTkKXjcxhDEIptrMWKGV55chQSrjmEmrhh2dF1K", "Seattle")

3. Request the page in the browser of your choice.

Result: The map fails to load. Examining the page source reveals that literal <text> tags are emitted in the helper's inline JavaScript.
Expected: We should be emitting valid JavaScript.
Comments: Fix is it's a simple fix, otherwise deprecate/remove

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>