Sharepoint 2010

  • SharePoint: Usage files are not deleted, file is open in SharePoint 2010 Timer

    .

    If you have worked on SharePoint 2010, you must have come across .usage file in LOGS folder. Location of this file is hive-folder/Logs.The main issue with .usage file is you can not delete all the files and additionally these files will keep growing in numbers and in the result, your drive space will keep reducing.…

  • ,

    Create Datatable using .Net Client Context in SharePoint 2010

    .

    Create Data Table while using SharePoint 2010 Client Context with .Net Code I am using .net code to access SharePoint List.I created a method ExecuteSPQuery() which returns Data Table. For that I wrote below code. public static DataTable ExecuteSPQuery()     {         DataTable dtData = new DataTable();         Microsoft.SharePoint.Client.ListItemCollection listCollection = null;         ClientContext context = new ClientContext(“SITE_URL”);         try         {                        Site oWebsite = context.Site;             context.AuthenticationMode = ClientAuthenticationMode.Anonymous;             List list =…

  • Attach existing Content Database to new SharePoint Site Collection

    .

    This blog will describe how to attach, detach a content database.Below is the scenario – You created a new Site collection in SharePoint 2010.Now you want this site collection to work with your existing Content database. Simply you can be asked that you have an existing content database and you need to attach it with…

  • ,

    Display SharePoint List Items using ECMA Script – Client Object Model

    .

    Display SharePoint List Items using ECMA Script In this blog, I will explain, how to get list items using ECMA Script.ECMA script is a client side way to work with SharePoint object. Create a web part page in page library. Add a content editor web part on that page.In content editor webpart write below code:…

  • ,

    REST API in SharePoint 2010 for CRUD operation with ListData.svc

    .

    REST API in SharePoint 2010 for CRUD Operation  SharePoint 2010 offers numerous ways to get data from a list. You may use Client Object Model, Linq to SharePoint and REST API by using ListData.svc. In this blog, I will explain how to perform CRUD operation on a SharePoint list using ListData.svcGenerally, SharePoint REST service URL…

  • Error – The user does not exist or is not unique SharePoint 2010

    .

    Currently I was doing some settings for super accountIn this context, I executed below command in powershell window. stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url “<site-url>” But my site stops working and got below screen while access url with error message. “The user does not exist or is not unique SharePoint 2010“ So I…

  • Client Side Object Model in SharePoint 2010

    .

    SharePoint 2010 offers a useful way to access SharePoint objects from the client side. A developer can use .Net managed code, ECMAScript to access SharePoint objects like List, Site, Library etc.On this blog, I will write a code to select data from SharePoint list. I will use .Net managed code to do this.First of all, you…

  • ,

    Client Side Pagination in Gridview

    .

    As you know pagination is very important for any data control for eg Gridview if you have large amount of data. Server load on pagination is also a big concern.Below is the code for pagination in gridview using client side. It means no page load/ server post back operation will be performed. To implement this…

  • What is delegate control in SharePoint? Why to use it?

    .

    Delegate control in SharePoint allows developers to manage control on a master page without touching or editing master page. Actually, delegate control is associated with a feature. Whenever that feature is active delegate control will be visible and if an associated feature is de-active delegate control will not be visible to users. Create Delegate control…

  • ,

    The method “GetItems” of the type “List” with id “{Guid}” is blocked by the administrator on the server.

    .

    I was working on SharePoint Client Context, and i was writing a piece of code to fetch items from SharePoint list. I got this error at this line:objContext.ExecuteQuery(); I solved this issue by executing powershell command.Open SharePoint Powershell  and type below command one by one. $webapp = Get-SPWebApplication “http://spserver”$webapp.ClientCallableSettings.AnonymousRestrictedTypes.Remove([microsoft.sharepoint.splist], “GetItems”)$webapp.Update()Open SharePoint Powershell  and type below command…

  • 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…

  • 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”.…

  • 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…

  • ,

    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…

  • How to enable publishing feature in a team site in SharePoint 2010

    .

    How to enable publishing feature in a team site in SharePoint 2010 On a team site also publishing feature can be enabled.But once you enable the Publishing feature on a collaborative site, such as a team site or a blank site, you can no longer save that site as a template. This is something you…

  • Allow unsafe update vs run with elevated privileges in sharepoint

    .

    In this blog, we will see the differences between AllowUnsafeUpdates and RunWithElevatedPrivileges What is allow unsafe update and run with elevated privileges in SharePoint 2010? What are the differences between Allow unsafe update and RWEP. AllowUnsafeUpdates Vs RunWithElevatedPrivileges AllowUnsafeUpdates –  AllowUnsafeUpdates is set to true when you are trying to update the database.To GET the…

  • ,

    what are differences between classic mode and claim based authentication in SharePoint 2010

    .

    what are differences between classic mode and claim based authentication in SharePoint 2010 Classic mode authentication: This is nothing but windows authentication. It means it will work based on you windows logged in credentials. There is a problem in classic mode authentication. Once a site is created under this authentication then Form based authentication can…

  • How to work with features in SharePoint?

    .

    How to work with features in SharePoint? Feature deployment and activation in sharepoint Feature is used to give some enhancement in SharePoint site. Please follow below steps to use feature in SharePoint site.Paste these two .xml files in below location.C:Program FilesCommon FilesMicrosoft Sharedwebserver extensions12TEMPLATEFEATURESmyfolderHere is both .xml files. feature.xml (code)<?xml version=”1.0″ encoding=”utf-8″ ?><Feature xmlns=”http://schemas.microsoft.com/sharepoint/”Id=”5DFD12AF-D0AA-4c63-8FB8-C49DB1191083″   …


RSS
YouTube
YouTube
Instagram