Let's SharePoint

Server Side Object Model

  1. HOME
  2. Server Side Object Model
January 4, 2019 / Last updated : January 4, 2019 Sethu Server Side Object Model

How to check if termset is present in a termset group using SSSOM in Sharepoint 2010?

Hello Sharepointers, public void TermGroupExist() { ClientContext ctx = new ClientContext(“http://mysharepoint.com”); TaxonomySession ts = TaxonomySession.GetTaxonomySession(ctx); TermStore store = ts.TermStores[0]; TermGroup termGroup = store.Groups.GetByName(“Country”); ctx.Load(store); ctx.Load(termGroup); ctx.ExecuteQuery(); } Happy Sharepointing

November 7, 2015 / Last updated : November 7, 2015 Sethu Server Side Object Model

How to Bind SharePoint Lists into a DropDown in SharePoint 2010/2013?

Hello SharePointers, In this blog, I will give the source code to bind the asp.net dropdownlist with the SharePoint list names in SharePoint 2013. Below are the source code to achieve the same. //Create a Asp.Net Dropdown list one for list and one for list items. DropDownList ddlSPLists; DropDownList ddlListItems; ddlSPLists = new DropDownList(); ddlSPLists.ID […]

November 6, 2015 / Last updated : November 6, 2015 Sethu Server Side Object Model

How to add Image Slider Web Part in SharePoint 2013 Programatically ?

In this article, we will see how to create Custom Image slider web part in SharePoint 2013 . Below are the source code to achieve the same. <section class=”slider”> flexslider” style=”height: 200px; background-color: #fff”> <ul class=”slides”> <asp:Repeater ID=”repeater” runat=”server”> <ItemTemplate> <li> <table width=”850″ border=”0″ cellspacing=”15″ cellpadding=”15″> <tr style=”vertical-align: top;”> <td width=”300px”> <img src=”<%# Eval(“PICURL”) %>” […]

October 28, 2015 / Last updated : November 15, 2015 Sethu Server Side Object Model

How to Show Images from Image Library in a DataList in SharePoint 2013 Programatically?

In SharePoint 2013, if you want to show the images from a image library and with its corresponding description , we can bind it using Data List Control in ASP.NET. Here are the sample code to achieve the same. UserControl aspx Code :- <asp:DataList ID=”dtImagePreview” runat=”server” CellPadding=”5″ OnItemCommand=”dtImagePreview_ItemCommand” > <ItemTemplate> <asp:ImageButton ID=”hypImagePreview” class=”preview” height=”80″ width=”100″ […]

October 1, 2015 / Last updated : October 1, 2015 Sethu Server Side Object Model

How to Export Web parts in SharePoint 2013?

In this blog, we will see the piece of the code to export the web part in a web part page. A SharePoint Web part is a piece of server code which does the certain functionality like listing your site assets. A SharePoint web part can be dragged and dropped into any Web Part Zone. […]

August 29, 2015 / Last updated : November 15, 2015 Sethu Server Side Object Model

How to show pictures from Image Library in SharePoint 2010?

Hell0 SharePointers, If you want to show images from picture library in a custom web part,we can use a Server side object model to achieve this business requirement. In this article, I will give you a piece of code to display images form the Image Library. Image Library is a document library which is used […]

April 22, 2015 / Last updated : November 16, 2015 Sethu Server Side Object Model

How to Remove Users from SharePoint Group Programmatically in SharePoint 2013

Hello SharePointers, In this article, I will give a simple code to remove users from a SharePoint group programatically.Below is the code to removeĀ from user to the group using Server Side Object Model. public static void AddRemovefromSharePoint Group( string spuser,string spgroup,string spurl) { string loginName = spuser; SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(spurl)) […]

April 21, 2015 / Last updated : November 16, 2015 Sethu Server Side Object Model

How to add Users to a SharePoint Group in SharePoint 2013

Hello SharePointers, In this article, I will give a simple code to add users to a SharePoint group programattically.Below is the code to add a user to the group using Server Side Object Model. public static void AddUserToSharePoint Group( string spuser,string spgroup,string spurl) { string loginName = spuser; SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new […]

Recent posts

How to insert table in Modern Pages using PnP Powershell in Office 365/Sharepoint Online?

June 7, 2019

How to set up Access Requests in SharePoint online using Powershell?

May 11, 2019

How to change the default SharePoint suite logo in SharePoint 2013/2016/2019?

April 30, 2019

How to add metadata to Document libraries in SharePoint online using powershell.

April 27, 2019

How to get Sharepoint site details using Powershell in Office 365?

April 17, 2019

How to get alerts for a specific policy in Cloud app security using Powershell

April 16, 2019

How to get the list of custom apps in App catalog using Powershell?

April 9, 2019

How to get the list of policies in Microsoft Cloud app security using window powershell?

April 4, 2019

How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?

April 4, 2019

How to restore subsite in a Sharepoint online site collection using Pnp Powershell

April 2, 2019

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
    • Customization
  • Designer Workflows
  • Errors & Resolutions
  • Features
  • Google Analytics
  • InfoPath
  • Item Scheduling
  • JSOM
  • Nintex worflows
  • Office 365
  • Office 365 Groups
  • PnP JS Library
  • PowerShell
  • Powershell Online
  • REST API
  • REST API's
  • Server Side Object Model
  • SharePoint 2010
  • SharePoint 2010 Search
  • SharePoint 2013
  • SharePoint 2013 Search
  • SharePoint 2013 Workflows
  • SharePoint 2016
  • SharePoint 2019
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Pnp
  • SharePoint Usage Analytics
  • Unique values
  • User Profile Services
  • Windows Powershell
  • Workflow Manager

Archive

  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015

Copyright © Let's SharePoint All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.