SharePointCafe Admin

  • PowerShell Command List used in SharePoint 2010

    .

    PowerShell Command which are common in use for a SharePoint Developer.   BackupBackup-SPSite http://oldsite -Path C:backupsitename.bak RestoreRestore-SPSite http://newsite -Path C:backupsitename.bak Add WSPAdd-SPsolution “C:File1.wsp” Update WSPUpdate-SpSolution -Identity File1.wsp -LiteralPath “C:File1.wsp” -GACDeployment Install WSPInstall-SPSolution -Identity “File.wsp”  -WebApplication “http://siteurl” EnableFeatureEnable-SPFeature -identity “MyFeature” -URL…

  • How to create a secure webservice in asp.net

    .

    Web service is a way to communicate between 2 machines via HTTP, those 2 machines can be on the different platform.See more about web service at this URL: http://www.sharepointcafe.net/2015/05/all-about-web-service-soap-rest.htmlAs you know web service is a way to communicate over HTTP,…

  • Throttling and Indexing in SharePoint List

    .

    What is Throttling and Indexing in SharePoint List? In SharePoint, List is like a table with rows and columns. Similar to SQL tables SharePoint List need indexing if contains heavy amount of data else it will degrade the performance of…

  • Resource Throttling Setting unable to open, Error message is Updates are currently disallowed on GET requests.

    .

    Updates are currently disallowed on GET requests. To allow updates on a GET, set the ‘AllowUnsafeUpdates’ property on SPWeb. I searched on google and found the solution.You need to update webapplication throttle setting through powershell command $w = get-spwebapplication http://mysite:2015$w.HttpThrottleSettings$w.Update()…

  • What is QueryThrottleMode in SPQuery Class?

    .

    As per MSDN definition, QueryThrottleMode is a property of SPQuery class which gets or sets value that indicate the throttling mode to be applied to the query. As we know that List Throttling is a new option available in SharePoint 2010. List Throttling limits…

  • Logging to ULS in SharePoint 2010.

    .

    ULS stands for Unified Logging ServiceULS helps developer to avoid debugging code again and again to find out bugs.ULS clearly specifies the error in details.Generally SharePoint logs can be found at hive folder i.e. 14LOGSBut this log file is not…

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

  • ,

    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…

  • Powershell Command to add a file to root of SharePoint

    .

    This blog will explain about adding a file to SharePoint root.Generally sharepoint structure is http://server/pages/page1.htmlSuppose you need to add a file in root which should access by http://server/page1.html This can be done by powershell command. Write-Host “Powershell started…..”Add-PSSnapIn Microsoft.SharePoint.PowerShell$fileBytes =…

  • Create SharePoint List with Code and CAML

    .

    CAML is an XML based language used for access SharePoint objects like List, Library, Content-Type, Site Columns. To know more about CAML Query, please visit my another blog post Learn CAML Query step by StepCAML comes under declarative and the…

  • Linq in C# Programming

    .

    Before using LINQ in C#, please read my earlier blog to get some basic idea about what is LINQ? LINQ can be used in C# in different ways : One way is to use with Lambda ExpressionAnother way is to use…

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

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

  • C# Code to get user details from FaceBook

    .

    In this blog i am going to explain about how some one can get user details from Facebook and later use data for user registration, user login and for some other purpose. First you need to create a Facebook APP,…

  • ,

    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…

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

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

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

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

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


RSS
YouTube
YouTube
Instagram