[英]javascript error when using google maps ASP.NET GoogleMaps User Control
When I try to run the google maps on an asp .net page I get a javascript error saying that it doesn't like the key I'm using but I have the key from google 当我尝试在asp .net页面上运行Google地图时,出现JavaScript错误,提示它不喜欢我正在使用的密钥,但我拥有Google的密钥
can anyone help please? 有人可以帮忙吗?
Edit - this is the key that google provided: 编辑 -这是Google提供的密钥:
ABQIAAAAcPBSoXRloZCu5tYnhpZBCBRrxSVjvAJ3kkmtcIQSxWeYirsDfxTECPvByIoh90G8hcPG55N3s_3E2g
Code: 码:
<cg1:GMap ID="gMap1" runat="server" Height="250px" Width="350px" enableServerEvents="true"
Visible="False" serverEventsType="AspNetPostBack" />
It seems that you're using the GoogleMaps control for ASP.NET 看来您正在使用ASP.NET的GoogleMaps控件
Where are you setting the key?? 您在哪里设置密钥? Onload? 负载?
Try to set it at the web.config 尝试在web.config上进行设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.