2

我有一个带有框架集的简单 Statistics.aspx 页面,我想将它用作 Web 用户控件中的模式页面。我有一个javascript函数,我在gridview Item模板中使用它,如下所示:

<script>
function ViewStatistics(AdId)
 {
     modalDialog('../../../CMSWebParts/Advertise/Tools/View_Statistics.aspx', 'ViewStatistics', 700, 600);
  }

    <asp:ImageButton ID="imgbtnStatistics" runat="server" CommandName="statistics" 
     ImageUrl="~/App_Themes/Default/Images/Objects/__REPORTING__/object.png" 
     ToolTip="View Statistics" Width="18px" CommandArgument='<%# Eval("ItemID") %>'        
     alt="ViewStatistics" OnClientClick=" ViewStatistics (10 ); return false;" />

我的 statistics.aspx 页面代码如下:

<asp:Content ID="Content5" ContentPlaceHolderID="plcContent" runat="Server">
<%--    <div>
<iframe src="User_ADs_Analytics_Statistics.aspx" >hi</iframe>
<iframe src="User_ADs_Analytics_Statistics.aspx" >hi2</iframe>
 </div>--%>
<frameset border="0" cols="220,*" id="colsFramesetAnalytics" runat="server">
    <frame name="analtree" src="User_ADs_Analytics_Statistics.aspx" scrolling="no" frameborder="0" />
    <frameset border="0" rows="111, 154, *" runat="server" id="rowsFrameset">
        <frame name="analmonths" src="../../../mjtest.aspx" scrolling="auto" frameborder="0" />
        <!--  <frame name="analdays" src="User_ADs_Analytics_Statistics.aspx" frameborder="0" />
        <frame name="analreport" src="../../../CMSDesk/blank.htm" scrolling="auto" frameborder="0" /> -->
    </frameset>
    <noframes>
        <p id="p1">
            This HTML frameset displays multiple Web pages. To view this frameset, use a Web
            browser that supports HTML 4.0 and later.
        </p>
    </noframes>
</frameset>

当我使用 iframe 时效果很好,但是当我使用 frameset 时它什么也没显示。

4

0 回答 0