Using SharePoint’s Rich Text Box in a page

By Sigar Dave No comments

ASP.Net does not provide a rich text box control in its set of web controls. So, if you need to place a rich text box on your SharePoint page you’ll have to use a commercial, free or open source text box control (and there are plenty out there). However if you don’t want to introduce another […]

Renew an expiring client secret in a SharePoint Provider Hosted Apps (Add-in) without deploying the Apps again by changing Client Secret key using Powershell

By Sigar Dave No comments

When you create Provider Hosted you have registered a Client ID and Secret ID using SharePoint Register App Page (AppRegNew.aspx) and you have used this Client ID and Secret ID in the Web Config in the web application part of the provider hosted app (App Web), after one year your Apps is stop working, and […]

Site Pages and Application Pages (Difference Between SharePoint Application Pages Vs Site Pages)

By Sigar Dave No comments

Application Pages Site Pages Application pages are stored in the server’s file system.  Site Pages is a concept where complete or partial page is stored within content database and then actual page is parsed at runtime and delivered to end-users.   SharePoint Designer tool cannot be used withapplication pages.  Site pages can be edited by using SharePointDesigner tool.  Application pages cannot be used within sandboxed […]

Use Site Url in SharePoint

By Sigar Dave No comments

There are several ways to reference site collection or site url in masterpage, layout page, application page and web parts.1. Token: ~sitecollection ~siteThese tokens only works with SharePoint server side controls. They do not work with ASP.NET control or HTML control.2. SharePoint Server Token <% $SPUrl:~sitecollection/…%>This token is only available for SharePoint Office Server not the SharePoint Foundation […]

Resource throttles and limits

By Sigar Dave No comments

The following table summarizes information about resource throttles and limits that you need to be aware of. These throttles and limits are set on the Resource Throttling page in Central Administration. Contact your administrator for specific limits and requests for your site. NOTE   To assist with management, the administrator is not subject to the following resource […]

Enabling ScriptManager PageMethods doesn’t work in some scenarios in SharePoint

By Sigar Dave No comments

I worked on a case where the problem was that PageMethods won’t execute from within a SharePoint 2013 application page (page deployed to the _layouts folder).  To replicate the problem, I had a custom master page deployed through a VS 2012 solution with the following definition within the <body/> element. <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="true" EnablePartialRendering="true" […]

SharePoint Feature Deactivation – Removing Module Assets

By Sigar Dave No comments

If your feature is going to install assets to your site, i.e. web parts (.webpart or .dwp files), master pages, page layouts, images, javascript files, custom stylesheet, even possibly custom content type, list definitions and list instances, it is normally considered best practices to remove what you added when the feature is deactivated. I say […]

Default User Profile properties for SharePoint

By Sigar Dave No comments

Update: link to TechNet article Default user profile properties (SharePoint Server 2010)and Default user profile property mappings (SharePoint Server 2010) Displayname Name Value Section: Basic Information Id UserProfile_GUID SID SID Active Directory Id ADGuid Account name AccountName First name FirstName Phonetic First Name SPS-PhoneticFirstName Last name LastName Phonetic Last Name SPS-PhoneticLastName Name PreferredName Phonetic Display Name SPS-PhoneticDisplayName […]

Missing “Destination folder” on upload document form in Sharepoint Enterprise 2010

By Sigar Dave No comments

When uploading documents into a document library with folders, you normally see the following screen: Problem On one of our sites the Destination Folder was not available. After some investigating I found that the site where it didn’t work, was created using the “Blank site” template. After some research I found a similar issue on the net. Solution Since […]

Understand _spPageContextInfo object in SharePoint

By Sigar Dave No comments

Introduction While creating the app in SharePoint we are using JavaScript and Client side object model. In development of app, we would require some basic properties to handle our app, SharePoint provide the few properties with _spPageContextInfo object. _ spPageContextInfo will provide the below properties  webServerRelativeUrl  webAbsoluteUrl siteAbsoluteUrl serverRequestPath layoutsUrl webTitle webTemplate tenantAppVersion isAppWeb webLogoUrl webLanguage currentLanguage currentUICultureName currentCultureName […]