【问题标题】:gridview is not visible when using update pannel使用更新面板时,gridview 不可见
【发布时间】:2015-02-06 08:28:33
【问题描述】:

这是要加载的模态页面。

<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" ChildrenAsTriggers="false" runat="server">
        <ContentTemplate>
            <asp:GridView ID="gridetails" runat="server" 

  ..... </asp:GridView>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="gridetails" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>

以这种模态形式

 $(document).on("click", "#Loadqty_detl", function () {
       var dlg1=  $('<div id=DialogDiv>').dialog({
           height: $(document).height() - 100,
           width: $(document).width() - 100,
           appendTo:"form",
           closeOnEscape: true,
           autoOpen: false,
           modal: true,
           title: "Entry form",
           open: function () {
               $(this).load('Ord_Quantitydetl.aspx');
           },
           show: {
               effect: "blind",
               duration: 500
           },
           hide: {
               effect: "clip",
               duration: 1000
           },
           buttons: {
               Close: function () {
                   $(this).dialog("close");
               }
           }
       });

       var reload = dlg1.dialog("open");
       Sys.Application.add_init(reload);

   });

但只要取消注释 scripmanager 或 updatepannel 就不会加载此网格视图,因为会显示空白模式弹出窗口。

【问题讨论】:

    标签: c# asp.net gridview


    【解决方案1】:

    在添加 updatepannel 和 scriptmanager 解决这些错误后,我遇到了错误,开发人员工具或 firebird 完成了这项工作/。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-15
      • 2012-10-10
      • 1970-01-01
      • 1970-01-01
      • 2011-07-10
      • 1970-01-01
      • 2018-05-05
      • 1970-01-01
      相关资源
      最近更新 更多