【问题标题】:Open DotNetNuke Link Popup打开 DotNetNuke 链接弹出窗口
【发布时间】:2013-02-16 10:05:20
【问题描述】:

如何在弹出窗口而不是新页面中打开模块内容?

目前,我在 GridView 中使用这样的链接:

<asp:GridView ID="grdStudentAttendanceList" runat="server" AutoGenerateColumns="False" EnableViewState="false">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:TemplateField HeaderText="Surname" >
            <ItemTemplate>
                <a href='<%# DotNetNuke.Common.Globals.NavigateURL("AddOrUpdateStudent","StudentID=" + Eval("StudentID").ToString(),"mid=" + ModuleId) %>' class="">
                    <%# Eval("Surname").ToString()%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>

【问题讨论】:

  • 详细描述模块内容。

标签: c# asp.net dotnetnuke dotnetnuke-module


【解决方案1】:

我为我的问题找到了解决方案,而且非常简单。

只需像这样将NavigateURL 传递给dnnModal.show

<asp:TemplateField HeaderText="Surname" >
    <ItemTemplate>
        <a href="javascript:dnnModal.show('<%#DotNetNuke.Common.Globals.NavigateURL("AddOrUpdateStudent","StudentID=" + Eval("StudentID").ToString(),"mid=" + ModuleId) + "?popUp=true" %>',false,550,950,true)" class="">
            <%# Eval("Surname").ToString()%>
        </a>
    </ItemTemplate>
</asp:TemplateField>

注意:添加了?popUp=true URL 查询参数。

【讨论】:

    【解决方案2】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 2014-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多