Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi friends,
Recently I came accross a website, if you wish you can check this link: www.compareandrecycle.co.uk[^]

In this site, user can search for a product and result is collected from different other sites and shown in an order. However when a user clicks a particular link of a product then user is redirected to that site where the search result came from.

Now my question is how this is implemented in terms of .net? Is it by calling webservices published by those sites or just by passing the query to that site's search engine? And once the search result is obtained then how the results from that site is collected and shown in the current site?

If anyone can suggest any code or at least explain the process then it will be of great help.

Best Regards.
Posted

1 solution

XML
You could use an HTTPRequest

<a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx">http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx" target="_blank" title="New Window">^</a>]

Though you are going to need to experiment a bit on how to pass custom params through.


Web services Is a completely different matter and it would be made for the expressed purpose of transfering result to an external application or website. Best is to approuch those sites ask them if they have such a service or is interest in , otherwise you are better off pulling the page data via a HTTPRequest
 
Share this answer
 
v4
Comments
Shaugata 2-May-12 8:26am    
Thanks for such a quick response. However, do you have any example code about how to pull other page's data via HTTPRequest?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900