Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

How to 'include' one page inside the other?

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 (asp.net search results page) what would be the best way to accomplish this using ASP.net? (kinda like a server side include).

 I've heard of  using an asp.net '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 :)
0
Matrix1000
Asked:
Matrix1000
4 Solutions
 
GrandSchtroumpfCommented:
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.
0
 
SMartinHamburgCommented:
if you want to display one page inside another you might want to think about frames.
But maybe I misunderstood your question ...
0
 
joeposter649Commented:
Sounds like a job for a web service to me...
http://aspnet.4guysfromrolla.com/articles/100803-1.aspx
0
 
super786Commented:
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now