2012-11-30 141 views
0

我试图用this Google Maps Control,但我不断收到此错误:谷歌地图控制ASP.NET

The base class includes the field 'GoogleMapForASPNet1', but its type 
(Vehicle_Tracking_System.GoogleMapForASPNet) is not compatible with the type of control 
(ASP.googlemapforaspnet_ascx). 
+1

准确地说,你是如何产生错误的?你能描述别人如何重现它吗? – ghoti

+0

你想达到什么? –

回答

0

注意,控制的CodeFile。 您可以检查:

  • 它包含页面也的CodeFile(或更改控件的源代码隐藏到),如果您计划在.aspx.cs使用它
  • ,您使用的指令< @Reference控制= “...”
  • 如果您.aspx.cs是一个局部类,控制应该自动宣布

希望这将帮助,

0

注意:确保System.Web.Extension库的版本与添加引用时选择的版本相同。

您正在添加“System.Web.Extensions,Version = 4.0.0.0” 并且该引用具有“System.Web.Extensions,Version = 1.0.61025.0”的示例。