SharePointCafe Admin

  • ,

    Calling ASP.Net WebMethod using jQuery AJAX

    .

    Before reading this blog, you can read some of my popular blogs – ASP.Net Tutorial, WCF Tutorial, .Net Core Tutorial, JQuery Tutorial In this blog, we will first know about Web Method. What is Web Method? Web methods are those methods which are generally exposed over the web for eg – in a Web service.…

  • How to consume RESTful APi from server side code – C#

    .

    I was working on a project where I got a Web API URL with parameters, I was asked to consume this API and get the response from there. What is RESTful Service? Representation State Transfer. REST says each resource should be accessed by URI. In REST client sends a request and server responds for that…

  • ,

    CAML Query Tips, Tricks and Syntax

    .

    CAML Query is one of the most important topics in SharePoint. CAML Query is the way for querying items from SharePoint objects like List and Library. This blog is helpful in SharePoint 2010 development as well as in SharePoint 2013 development. CAML Query tutorial for SharePoint 2013 and SharePoint 2010 In this blog, I will…

  • All about SharePoint 2010 Content Type Hub – SharePoint 2010 Tutorial

    .

    What is Content Type Hub in SharePoint 2010? Content type hub is a new feature which comes with Managed Meta Data Service in SharePoint 2010. I have worked with SharePoint 2007 and I know that there is a problem for creating an enterprise library and sharing them across the site collections. There was no out-of-box solution to…

  • ,

    SharePoint 2010 Enterprise Content Management

    .

    What is Enterprise Content Management? Enterprise Content Management can refer to all kinds of sources, including electronic documents, scanned images, e-mail, and web pages. What is Content Type Syndication The act of sharing a site collection’s content types with other site collections in the farm is referredto as content type syndication. Content type syndication enables…

  • ,

    Working with BCS and External List in SharePoint 2010

    .

    In this blog, I will explain about BCS (Business Connectivity Services) and how we can implement BCS in SharePoint 2010. What is BCS? BCS stands for Business Connectivity Services. 1.Create a table in SQL.2.Open SharePoint designer. From the navigation pane select “External Content Types”.3.From the New tab in top ribbon click on “External Content Type”.…

  • State Management in C#

    .

    In my other blogs, you may read C# 6.0 new featuresIn this blog, I will explore about State Management in C#. If you have attended an interview as a C#.Net developer, then questions related to State Management is likely to be asked. You may read Important C# interview questions and answers What is State Management…

  • ,

    Bind a InfoPath dropdown with SharePoint List

    .

    This article explains about binding infopath dropdown with SharePoint List data.Posted on :27th Jul 2014 Suppose you have a requirement, you need to bind SharePoint list data to dropdown in Infopath. Simply you want to use SharePoint list as your data source for Infopath dropdown list. Follow below steps with given screen shot.Step 1: Open…

  • , ,

    Using a web service in SharePoint InfoPath form

    .

    Web service is a way to communicate between 2 machines via HTTP, those 2 machines can be on a different platform. To know more about Web Service read my previous blog – All About Web Service, SOAP and RESTful In this blog, we will see how to Consume Web Service in InfoPath Form. 1. Create…

  • Lookup column is blank after moving the list as STP file from one environment to another.

    .

    Do you know the importance of lookup column in sharepoint list?Its the kind of field in a list which pulls data from another field of a List.Suppose if you have two list called ListA and ListB in your sharepoint web application.You created a field in ListB of type Lookup and lookup data is coming from…

  • How to create a 404 or Custom Error Page in SharePoint 2010

    .

    404 Error page is a standard to display a page with your own message if user mistype a page name. To configure custom error page eg HTTP 404 Page not found error in SharePoint 2010. It is a good practice to create custom error page. To do so just follow below steps: 1. Go to…

  • Error-The Method GetItems of the type List with id is blocked by the administrator on the server

    .

    Recently i was working with SharePoint Client object model, suddenly I face an issue while accessing fetching SharePoint list data. Error was-The Method “GetItems” of the type “List” with id “{Lists’s Guid}” is blocked by the administrator on the server After searching over internet i found the solution and it worked for me: To solve…

  • How to link 2 SQL DB servers

    .

    If someone wants to get data from 2 tables from 2 different SQL DB server. Then execute below stored procedures before running your query. Step1: exec sp_addlinkedserver    @server=db-server-name Step2: EXEC sp_addlinkedsrvlogin db-server-name, false, NULL, id, password Once you executed above SPs successfully, you can check linked server list by executing below SP. exec sp_linkedservers

  • How to add file in root of a sharepoint web application?

    .

    SharePoint folder structures are different, generally pages will be available in Page library. What if a user wants to add a file in root of SharePoint web application. Generally sitemap and robots files are added to root.Below is the powershell command which can add file to root location. $fileBytes = [system.io.file]::ReadAllBytes(“D:MyFoldersitemap.xml”);$site = Get-SPSite “http://server:80”;$site.RootWeb.Files.Add(“sitemap.xml”, $fileBytes,…

  • ,

    SharePoint central administration page is blank after sharepoint installation

    .

    I have installed sharepoint 2010 successfully, even i have completed sharepoint configuration wizard with no error, but still i got blank central administration page. How to solve this issue ?I searched over internet and i did below steps and my problem gone. Go to IIS, check the authentication settings for SharePoint Central Administration website in…

  • What is SPDisco.aspx file in Sharepoint 2010?

    .

    SPDisco.aspx file is a directory of all web services available in SharePoint. This file contains names and locations of all web service endpoints which is available in SharePoint.If you are creating  custom web service in SharePoint then you must do an entry of endpoints in SPDisco.aspx file. Location of SPDsico.aspx file is:“C:Program FilesCommon FilesMicrosoft SharedWeb…

  • How to get the internal name of a column in a sharepoint list?

    .

    I was working on a SharePoint project, suddenly i got this error saying “The property or field not initialized”. I searched over net and found that the internal name of a field or column in SharePoint list might be different. Then I searched how to know the internal name of a field in sharepoint list…

  • What is collection in C#

    .

    Collection classes are used to store data of specific types. All types of collection support IEnumerable interface. Below are collection classes used in C#.net, all classes come under System.Collection namespace. List – An array does not allow dynamic resize, but a list allows dynamic size. Example: List<int> list = new List<int>(); list.Add(1); list.Add(5); list.Add(7); list.Add(10);…

  • Difference between Constant, read-only and static in C#

    .

    In this blog, we will learn about constant, read-only and static keywords in C# programming. We use const and readonly keyword to make a field constant and which values we can not modify. Const keyword We can not modify the value of a field if it is const. Let’s consider the code: This code works…

  • Exception handling in C#

    .

    Exception Handling in C#. Most .NET languages support exception handling. Essentially, when an error occurs in the application, the .NET Framework throws an exception that represents the problem. You can catch this object using an exception handler. If you fail to catch exception, code will be aborted, and the user will see an error message…


RSS
YouTube
YouTube
Instagram