asp.net页面中怎样嵌入一个ASP页面

解决方案 »

  1.   

    <!--下面的代码将index_top.asp嵌入主页-->
    <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
    <OBJECT id="Object1" type="text/x-scriptlet" width="100%" height="166" data="index_top.asp" VIEWASTEXT>
    </OBJECT>
    </TABLE>
      

  2.   

    <form id="Form1" method="post" runat="server">
    <TABLE id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <TR id="HeadTR" height="50">
    <TD bgColor="white" colSpan="2"><uc1:head id="Head1" runat="server"></uc1:head></TD>
    </TR>
    <TR>
    <TD vAlign="top" colSpan="2"><uc1:hmenuandtoolbar id="HMenuAndToolbar1" runat="server"></uc1:hmenuandtoolbar></TD>
    </TR>
    <TR>
    <td colspan="2">
    <table height="100%"  width="100%"  cellpadding=0 cellspacing=0 border="0">
    <tr>
    <TD id="LeftBarTD" vAlign="top" width="180" bgColor="silver"><uc1:leftbar id="LeftBar1" runat="server"></uc1:leftbar></TD>
    <TD vAlign="top" id="RightBarTD">
    <iframe id="fMain" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"
    src="#" frameBorder="0" width="100%" height="100%"></iframe>
    </TD>
    </tr>
    </table>
    </td>
    </TR>
    <tr>
    <td align="center" bgColor="silver" colSpan="2" height="10">
    <asp:Label id="labStatus" runat="server">Status:....</asp:Label></td>
    </tr>
    </TABLE>
    </form>
      

  3.   

    晕,不是吧,怎么和.net一样啊
      

  4.   

    麻烦再解决一下,我用<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
    <OBJECT id="Object1" type="text/x-scriptlet" width="100%" height="166" data="index_top.asp" VIEWASTEXT>
    </OBJECT>
    </TABLE>不行啊,显示乱码
      

  5.   

    编码问题
    加上
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>