简体   繁体   English

Subgurim Maps控件不会在Formview中呈现

[英]Subgurim maps control wont render inside a Formview

I want to create a subgurim maps control inside a Formview in an asp.net web form page. 我想在asp.net Web表单页面的Formview中创建一个subgurim maps控件。 When I add it to an item template in a formview it wont render. 当我将其添加到formview中的项目模板时,它不会呈现。 When I place it outside the Formview it renders fine. 当我将其放置在Formview之外时,它可以很好地呈现。 Is there something I am missing? 我有什么想念的吗?

Code where it does not render: 无法呈现的代码:

<%@ 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>

The problem is that Formview has not DataSourceID or DataSource . 问题在于Formview没有DataSourceIDDataSource If you set a DataSource for your FormView You will see the map. 如果为FormView设置了DataSource ,您将看到地图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在formview中使用下拉列表控件 - Using a dropdownlist control inside a formview 将登录用户分配给 FormView 控件内的文本框 - Assign Logged in User to Textbox inside a FormView Control 如何在模板化FormView中使用TabContainer控件? - How to use the TabContainer control inside a templated FormView? 用户控件内部的Formview的FindControl - FindControl of a Formview which is inside an user control FormView控件内的LoginView不在PostBack上进行数据绑定 - LoginView inside FormView control is not databinding on PostBack Google Maps Subgurim-多边形不再起作用 - Google Maps Subgurim - Polygons are not working anymore 在父级gridview内的webuser控件中嵌套gridview / formview - Nesting gridview/formview in webuser control inside a parent gridview FormView中具有属性[TemplateInstance(TemplateInstance.Single)]的模板化控件出错 - Error with templated control with attribute [TemplateInstance(TemplateInstance.Single)] inside FormView 如何在诸如FormView的数据控件中显示表格的导航属性? - How to display a Navigation Property of a table inside a Data control like a FormView? 使用Subgurim Maps在DragEnd事件的文本框上放置坐标时出现问题 - Problems putting coordinates on a textbox for DragEnd event with Subgurim Maps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM