How to load a classic asp page in asp .net web site

Last post 09-19-2008 2:32 PM by garychi. 2 replies.

Sort Posts:

  • How to load a classic asp page in asp .net web site

    09-18-2008, 3:49 PM
    • Member
      11 point Member
    • garychi
    • Member since 05-23-2008, 3:26 PM
    • Posts 44

    Hi there,

    I am working on an asp .net web site, and need to load an existing classic asp page in content page. But I got "Path 'DotNetSite/OldSite/project.asp' is forbiden" error message when click the node. My question is: What is the best way to host a classic asp page in .net framework? If using iFrame is fine, how to solve this issue?

    Following is my code snippet: 

    In web.sitemap file:

      <siteMapNode>
        <siteMapNode url="Default.aspx" title="Home"/>
        <siteMapNode url="~/OldSite/Default.aspx" title="Classic View"></siteMapNode>

     .....

    In  ~/OldSite/Default.aspx file:

    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <iframe id="frmExternalWeb" runat="server" width="100%" src="project.asp"></iframe>

    </asp:Content>

    Thanks,

  • Re: How to load a classic asp page in asp .net web site

    09-19-2008, 1:48 AM
    Answer
    • Participant
      1,065 point Participant
    • elegantkvc
    • Member since 07-30-2007, 4:20 AM
    • chennai
    • Posts 245

    hi,

     You have to set the AspCombat property to true for providing the Asp page compatibility in a .net environment.

     

    vijay
  • Re: How to load a classic asp page in asp .net web site

    09-19-2008, 2:32 PM
    • Member
      11 point Member
    • garychi
    • Member since 05-23-2008, 3:26 PM
    • Posts 44

    It works. Thanks,

Page 1 of 1 (3 items)