How to 'include' one page inside the other?

Posted on 2005-04-29
Last Modified: 2010-04-06
I'd like to begin a project that would allow customers to have search results appear inside their web page template.

For instance say a customer has a website hosted on their own server (lets say windows IIS 6.0) and I wanted to include search results generated from my MS 2003 server ( search results page) what would be the best way to accomplish this using (kinda like a server side include).

 I've heard of  using an 'panel', but I'm not sure what that is; and frames but that doesn't look good because only my search results frame scrolls instead of the whole page...what would you suggest?

(Also what would be an option if the user has their site hosted on a linux server)

Thanks :)
Question by:Matrix1000
    LVL 30

    Assisted Solution

    i guess the best would be to use xml for returning the search results.
    the customer servers can then query your server (http request), get the results in xml, and process/translate the xml to include it in their page.
    using a standard intermediate format like xml makes it 100% portable and cross-platform.
    LVL 5

    Assisted Solution

    if you want to display one page inside another you might want to think about frames.
    But maybe I misunderstood your question ...
    LVL 15

    Assisted Solution

    Sounds like a job for a web service to me...
    LVL 1

    Accepted Solution

    You coiuld use a custom web control.  During development, you have a search page with nothing on it except the user control.  Your user control would then have your search box and a submit button, with the results section hidden until IsPostBack is true.  When the user clicks the submit button, your user control would display the results section of your user control and refresh the entire web page (not just the user control section of it) thus making the entire page longer to accomodate your results.  
    Of course, the customer would have to have the user control running on their site.  Since you want the results to be pulled from your site, you could have a web page or web service on your site that generates a simple XML result set that the user control could scrape that.  This way, your customers template wouldn't have to scrape the xml.  They would just drop your control wherever they want it on their page.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now