locked
Sending information from one site to another RRS feed

  • Question

  • User-735851359 posted

    Hello,

    I have two web sites. In the first web site, I have a table with items. I want to show the latest 5 items from this table on the second web site. When I add a new item on the first site, it will be available on the second site too. It is like form news sites you get RSS. 

    How can I do that?

    Thanx in advance..

    Sunday, October 26, 2014 4:01 PM

Answers

  • User-760709272 posted

    If the two sites have access to the same SQL Server then the easiest way is that they just share the same database.  Failing that, if you make updates in one site you'll need to "push" those updates to the second via an API like a web service, or alternately the second site can just always get its own data from the first site using a web service.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 26, 2014 6:03 PM

All replies

  • User-760709272 posted

    If the two sites have access to the same SQL Server then the easiest way is that they just share the same database.  Failing that, if you make updates in one site you'll need to "push" those updates to the second via an API like a web service, or alternately the second site can just always get its own data from the first site using a web service.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 26, 2014 6:03 PM
  • User-735851359 posted

    Hello,

    Thank you for your information, but I am new to all what you say. You suggestions:

    1- sharing the same database: how to do that?

    2- Using API - how?

    3- Using Web Service - how?

    Any source will be usefull..

    Monday, October 27, 2014 2:08 AM
  • User1308270069 posted

    If you have access to the other database, u can configure it in your web.config file using EF or other ways. and then you can have access to all the tables, Stored procedures, views and etc.

    Monday, October 27, 2014 3:56 AM