Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
Hi,
I have some data on my website for my customers and I want to give them small java script code to embed it in their websites, and this code will pull their results from my website and will be visible on their website. So suggest me how to achieve this.
Thanking you in advance.
Posted 20 Feb '13 - 18:20


2 solutions

You can do it many ways. One way you can i guess it would be best solution, You first expose wcf service from your website. From other website they will call that service and get the data and display it to that target website.
Another way you can directly expose method to your web site page, The method you call from your site based on some unique uri. Client web site may call that method with WebClient/HttpWebRequest object(.NET object) and download/get response data from source website and display it to target website. To consume/display data you can use ajax for async communication.
 
you can visit the following links
 
Link 1
 
Link 2
 
Link 3
 
Link 4
  Permalink  
Comments
winners6 - 21 Feb '13 - 7:59
Thanks Habib, will the solution you suggested work both the ways i.e. either of the sides can update the data or that will be one way updation. Can you explain me in details or provide me some references and links where I can start with.
S. M. Ahasan Habib - 21 Feb '13 - 9:20
provide links inside solution. Please read it again.
One way you can i guess it would be best solution, You first expose wcf service from your website. From other website they will call that service and get the data and display it to that target website.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 586
1 Maciej Los 255
2 Slacker007 240
3 Aarti Meswania 233
4 OriginalGriff 230
0 Sergey Alexandrovich Kryukov 9,118
1 OriginalGriff 7,134
2 CPallini 3,803
3 Rohan Leuva 3,135
4 Maciej Los 2,558


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid