我们已经开始使用Bing地图作为引脚,但我们需要作为页面的使用条款。我实际上将使用条款添加到包含我们地图的div中的问题。现在我正在尝试添加一个简单的超链接元素,一旦实际添加,我将能够以格式化方式播放。我的代码如下:
//Create Hyperlink element and assign the values.
HyperLink hlTerms = new HyperLink();
hlTerms.NavigateUrl = "http://www.microsoft.com/maps/product/terms.html";
hlTerms.Text = "Terms of Use";
//Find the control, since we're testing have a safety catch to make sure it actually exists.
Control dvMap = FindControl("mapCell");
if (dvMap != null)
{
//Add to the div.
dvMap.Controls.Add(hlTerms);
}
尽管尝试在已经存在runat="server"
的div上使用FindControl,或者应该在我们到达OnPreRender的点上,我得到null。什么是真正使其正常工作的最佳解决方案?
编辑:我不确定人们是否真的没有读过ToU,但由于获得了企业许可,我们需要拥有使用条款。
8.4 Bing Maps TOU。您必须提供Bing Maps TOU的超文本链接:(i)您公司应用程序中可以查看或访问服务的每页底部,或者(ii)在您的公司申请的使用条款范围内。 Microsoft可能会不时更改Bing Maps TOU。公司有责任在适当时通知最终用户更改,并遵守Microsoft的合理指示。您不得鼓励或要求任何最终用户违反Bing Maps TOU的条款。
答案 0 :(得分:1)
您无需在应用程序中提供Bing Maps的使用条款链接。使用条款适用于应用的开发者,而不适用于应用的最终用户。