用于ASP.NET的Google地图控件
我尝试使用,但不断出现以下错误:用于ASP.NET的Google地图控件,asp.net,google-maps,Asp.net,Google Maps,我尝试使用,但不断出现以下错误: 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). 请注意,控件是codefile。 您可以检查: 它的包含页面也是codefile(或
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).
请注意,控件是codefile。 您可以检查:
- 它的包含页面也是codefile(或将控件的源代码更改为codebehind)
- 如果您计划在.aspx.cs中使用它,请使用指令这是一个更好的用户控件,
注意:确保System.Web.Extension库的版本与添加引用时选择的版本相同 添加“System.Web.Extensions,Version=4.0.0.0”的示例
引用中有“System.Web.Extensions,Version=1.0.61025.0”。到底是什么导致了错误?你能描述一下其他人是如何复制它的吗?你想实现什么?他在问题中说他正在使用那个控制。