More in this section
Forums / Developing with Sitefinity / Use SF API from another project (ASP.NET MVC)

Use SF API from another project (ASP.NET MVC)

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
    RAFAEL avatar
    1 posts
    21 May 2009
    29 Apr 2010
    Link to this post
    Is it possible to use SF API from another ASP.NET MVC project (adding in my ASP.NET MVC project references to SF dll's, modifing my web.config, copying resources,  etc)

    In my project I want to extract some content and use it. It is very important performance so I don't want to use a web service o something similar


    // In my ASP.NET MVC controller

    // create new instance of NewsManager
    Telerik.News.NewsManager newsManager = new Telerik.News.NewsManager("News");

    // get all content items
    IList listOfContentItems = newsManager.GetContent();
    if (listOfContentItems.Count > 0)
    foreach(Telerik.Cms.Engine.IContent contentItem in listOfContentItems)

    // Process info

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    29 Apr 2010
    Link to this post
    Hello RAFAEL,

    Thank you for using our services.

    Data coming from any provider in Sitefinity can be extracted only in the context of the application it is coming from. In this line of though the way to use it in an external project is through web services. This is the same as in other .NET applications. You should host the webservice on your Sitefinity website and then call it from the ASP.NET MVC application to get the data. Bellow are three blog posts from our blogs which sample the creation and use of web services:

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered