SharePoint Data in Asp.Net Applications

Hello Techies,
Is there any feasible way to fetch SharePoint data and display them in asp.net application.
Please let me know for possible ways with minimum efforts.

September 14th, 2015 4:57am

Hi Sachchin, 

You can use Managed Client Object Model. Please refer to below link:

https://msdn.microsoft.com/en-us/library/ee857094.aspx?f=255&MSPPError=-2147217396

You can query a SharePoint List get the data and use in asp.net application. :

ClientContext clientContext = new ClientContext("http://intranet.contoso.com");
        List list = clientContext.Web.Lists.GetByTitle("Client API Test List");
        CamlQuery camlQuery = new CamlQuery();
        camlQuery.ViewXml =
            @"<View>
                <Query>
                  <Where>
                    <Eq>
                      <FieldRef Name='Category'/>
                      <Value Type='Text'>Development</Value>
                    </Eq>
                  </Where>
                </Query>
                <RowLimit>100</RowLimit>
              </View>";
        ListItemCollection listItems = list.GetItems(camlQuery);
        clientContext.Load(
             listItems,
             items => items
                 .Include(
                     item => item["Title"],
                     item => item["Category"],
                     item => item["Estimate"]));
        clientContext.ExecuteQuery();
        foreach (ListItem listItem in listItems)
        {
            Console.WriteLine("Title: {0}", listItem["Title"]);
            Console.WriteLine("Category: {0}", listItem["Category"]);
            Console.WriteLine("Estimate: {0}", listItem["Estimate"]);
            Console.WriteLine();
        }

Free Windows Admin Tool Kit Click here and download it now
September 14th, 2015 10:18am

Hi,

We can fetch SharePoint data and display them in asp.net application using web service.

Here is a solution with the source code from Codeplex for your reference:

SharePoint 2010 Data in ASP.NET Web application using WebService

https://sharepoint2010ws.codeplex.com/

Best Regards,

Dennis

September 15th, 2015 2:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics