Iframe and asp includes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdali
    New Member
    • Apr 2010
    • 1

    Iframe and asp includes

    Hi ,

    I have asp page with many includes files , like connection, left and center.
    I would like to replace my with iframe

    my page is look like
    <body>
    <!--#include file="conn.asp" -->
    <!--#include file="leftside. asp" -->
    <!--#include file="center.as p" -->
    <!--#include file="footer.as p" -->
    <!--#include file="connclose .asp" -->
    </body>

    I want to replace <!--#include file="center.as p" --> to
    <iframe src="center.asp " width="755px" height="100%" scrolling="no" frameborder="0" ></iframe>

    but when I replace it with iframe doest not get connection string from conn.asp and therfore the center.asp not able to get data from database .

    Please help
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Iframes are generated and coded as completely separate pages than the main page. If you want to use an include file, you will need to include it in the iframe page code as well.

    Jared

    Comment

    Working...