【问题标题】:Subgurim maps control wont render inside a FormviewSubgurim 地图控件不会在 Formview 中呈现
【发布时间】:2015-05-23 15:19:38
【问题描述】:

我想在 asp.net 网页表单页面的 Formview 中创建一个 subgurim 地图控件。当我将它添加到表单视图中的项目模板时,它不会呈现。当我将它放在 Formview 之外时,它呈现得很好。有什么我遗漏的吗?

不渲染的代码:

<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="maps" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
   <div id="content">
       <asp:FormView ID="FormView1" runat="server">
       <ItemTemplate>
           <maps:StaticGMap ID="StaticGMap1" runat="server"  format="png32" />
           <maps:GMap ID="GMap1" runat="server" />
           </ItemTemplate>
       </asp:FormView>    
   </div>
</asp:Content>

【问题讨论】:

    标签: asp.net formview subgurim-maps


    【解决方案1】:

    问题是Formview没有DataSourceIDDataSource。如果你为你的 FormView 设置一个DataSource 你会看到地图。

    【讨论】:

      猜你喜欢
      • 2014-08-18
      • 1970-01-01
      • 2018-06-09
      • 1970-01-01
      • 2018-06-23
      • 2020-11-15
      • 2011-08-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多