June 2015
How to run SharePoint code with Elevated Privileges ?
.
SharePoint elevated privileges, site collection administrator code RunWithElevatedPrivileges is a class in SharePoint which comes under SPSecurity namespace. It allows developers to create the code that runs as the System Account instead of the logged in user, essentially giving that user Administrator Level Permissions in a specific space. What are the security risks in it ? So there is…
How to overload a web method in web service – ASP.Net
.
We can define Method Overloading as , Same Methods name with different type of parameter or different set of parameters. Web method overloading is not straight forward in use. Suppose there are 2 methods in a web service. public string GetEmployee(int employeeId) { string empName = string.Empty; //write…
How to create a blank SharePoint Page? SharePoint Branding
.
I was working on a project where all my SharePoint inherits from a custom master page with predefined Page Layout. I got a requirement where i need to create few pages with different layouts. There are various ways to do this. One is to create a new Page Layout by coding and select your layout…
Introduction to Linq to SharePoint
.
Introduction to Linq to SharePoint LINQ is a way to access external data sources.SharePoint Foundation 2010 comes with its own LINQ to SharePoint provider.The namespace which contains the provider is Microsoft.SharePoint.Linq.dll. LINQ provides strongly typed classes, this is an advantage of LINQ over CAML query.Another advantage of LINQ is that Visual Studio provides IntelliSense to…
Is it important to dispose an object in SharePoint ?
.
SharePoint foundation 2010 and SharePoint server 2010 object model contain objects that implement the IDisposable interface. Object disposal is very important in SharePoint. What is Disposing Object? Sharepoint foundation 2010 and sharepoint server 2010 object model contain objects that implement the IDisposable interface.You should explicitly dispose those sharepoint objects that implements IDisposable when you are…
What is Parent Content Type in SharePoint 2010?
.
What is Parent Content Type in SharePoint 2010? As you know content type in SharePoint gives re-usability features. Parent Content Type is a hierarchical relationship between two content types. Parent Content Type defines the properties for a child content type which inherits all properties of parent content type. For Eg Lets create a document library…
C# code to create, update and delete SharePoint List items
.
In this blog, we will perform Create, Update and Delete on SharePoint list items using C# code. You may be interested in reading some of the important blogs – CAML Query in SharePoint, SharePoint 2013 Tutorial, SharePoint 2013 important interview questions. What is SharePoint List? SharePoint List is similar to a table in SQL database and contains data in rows and…
How to create workflow in SharePoint Designer
.
Workflow is a process to break down a job/work into several segments to make the business easy and simple. Or, Workflows in SharePoint Designer are there to help you to create automated business processes. A sample workflow is a simple approval workflow. When an item is saved to a SharePoint list with an approval workflow…
Three State Workflow in SharePoint 2010
.
Three State Workflow in SharePoint 2010 1. Create a list with below structure, as shown in the screen. 2. Make sure, status column should be of choice and add 3 values as shown below. 3. Add a workflow to the list, with below steps. 4. Select “Three-state” from workflow template. Give a name to workflow.…
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…
