Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:20pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
v2
Comments
winners6 at 21-Feb-13 7:59am
   
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 at 21-Feb-13 9:20am
   
provide links inside solution. Please read it again.

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

  Print Answers RSS
0 OriginalGriff 383
1 ChauhanAjay 186
2 Richard Deeming 180
3 Sergey Alexandrovich Kryukov 171
4 Yogesh Kumar Tyagi 165
0 Sergey Alexandrovich Kryukov 6,252
1 OriginalGriff 5,498
2 CPallini 2,473
3 Richard MacCutchan 1,627
4 Abhinav S 1,530


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100