Sunday, December 23, 2012

Your client does not support opening this list with Windows Explorer

Hi All,

If you ever get the this error "Your client does not support opening this list with Windows Explorer."

When opening SharePoint document library in explorer view that means your missing Desktop Experiance Feature on your server.

Please find below link to enable the Desktop Experiane feature.


Sachin K.

PowerShell Error "The term 'Get-SPSite' is not recignized"

Hi all,

If you get an error in powershell as "The term 'Get-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again."       Then it sounds like the module isn't being imported into the Powershell console. You can add the module by running:

Add-PSSnapin Microsoft.Sharepoint.Powershell

in the Powershell console.

  Thanks,   Sachin k. 

Friday, December 14, 2012

Extracts the host web URL from the query string

Hi All,
Refer to the javascript code below to get the host web url from Query String in SharePoint 2013.


Sachin K.

Tuesday, December 11, 2012

SharePoint 2013 Apps Hosting Options

Hi All,

The SharePoint 2013 app model facilitates two broad approaches to hosting your apps for SharePoint: SharePoint-hosted and cloud-hosted.

These are not exclusive categories: An app for SharePoint can have both SharePoint-hosted and remotely hosted components. Within the cloud-hosted approach there are two important subcategories: provider-hosted and autohosted. Each approach has key features you should consider when deciding how to host your apps.

 Below is the diagrammatic representation of SharePoint 2013 App hosting model

Click Here to get more detail information.


Sachin K.

Create Custom Master Page in SharePoint 2013

Hi all,

Creating custom master page is now easier in SharePoint 2013. You can do this with the new feature “Design Manager”. What you will need is just HTML template of your master page along with all required files and a publishing site in SharePoint 2013.

I am not expert in designing aspects :) but here in this post I will explain you how to create simple custom master page from HTML design template in SharePoint 2013.

Here I assume that you are having HTML design template ready with you and it has folder structure as mention below.

First of all you need create publishing site where you are going to apply your custom master page. After successful creation of publishing site you will see two sections on your welcome page. One is I ‘m the Information Architect and another is I ‘m the visual designer.

To create custom master page, you will need to click on Design your site link present under I ‘m the visual designer section.

This will redirect you to the page Design Manager Page which helps you to create your own site design in SharePoint.

You can also navigate to this page from Site Action-->Design Manager Link.


Click on 4. Edit Master Page’s link.

Click on Convert an HTML Files to a SharePoint Master Page Link to map your HTML design template.

Upload your HTML Folder structure (all images, css, js and html file) to this location. You can also do this with the help of SharePoint Designer as well.

After uploading all necessary documents go to the Design Manager.
Click on 4. Edit Master Pages and then click on Convert an HTML File to a SharePoint master page. You will see your HTML page there select that page and click on insert button it will insert master page in to designer managers master page list.

Make sure to publish this file otherwise it will not be available in master page gallery and you will not able to select it from the dropdown list.

Note: You need to take care of you HTML design, it should not contain any unclosed tags and it should be bug free to get it working in first attempt otherwise SharePoint will display an error message when converting HTML file to master page.

Sachin K.

Tuesday, December 4, 2012

SharePoint CAML query filter using date time parameter

Hi All,

I went through a scenario where I want to write and CAML query that will filter some data based on the date time value.

The issue is that CAML need to have this date time value in a specific format.

To provide the correct date time format that is recognised by CAML markup you should use SPUtility.CreateISO8601DateTimeFromSystemDateTime function on a date value that you are comparing.

Here is an example of testing that the "Expires" column is greater or equal to the current date:  


Sachin K.

Getting Started with JSRender

Hello All,

If you are new to the JSRender and want to know more about how to render UI using JSRender technique refere to the liks below.

Using JsRender with JavaScript and HTML

Advanced JsRender Templating Features

These are some good links to get started with JSRender.

Sachin K.

Introducing Apps for Office 2013 and SharePoint 2013

Hello all,

If you are not familier with the new app model please refere to the following link.

Here Chakkaradeep Chandran has explained in very simple way to get started with new app model in SharePoint 2013.

Getting Your Office 365 Preview Account

To build apps using the new “Napa” Development Tools, you first need to sign up for the Office 365 Preview which includes the new SharePoint 2013 Preview.

You can find the instructions to do so here -

Thanks Chakkaradeep for this great post.

Sachin k.

Tuesday, November 27, 2012

Advance paging in SharePoint using Client Object Model and jQuery

Hi All,

Refer to this Link to see how to create custom paging by using SharePoint Client Object Model and Jquery without need to navigate between pages.

New idea,new Approach.   Thanks,   Sachin K.  

Monday, November 26, 2012

Get Client ID

Hi All,

Please find below simple javascript function to get client Id render by server control in html page via javascript.

function GetClientID(id, context) {

var el = $("#" + id, context);

if (el.length < 1)

el = $("[id$=_" + id + "]", context);

return el;


  var ctrlOk = GetClientID("btnOk").attr("id");

Where "btnOk" is the Id of your server control.

Sachin K.

Friday, November 16, 2012

Windows Live ID Authentication to SharePoint site

Hi All,

If you ever want to integrate Windows Live ID Authentication to SharePoint site refer to this Link

Here Wictor has explained in detail how to integrate windows live ID with SharePoint.
Thanks Wictor for this great article !

Wednesday, October 17, 2012

Creating Page Layouts for Custom Content Types

Hi All,

If you want to create custom content types and page layouts from your custom content types then refer to the links below-

Thanks Sumit for this wonderful post.


Tuesday, October 16, 2012

Create CAML Query dynamically

Hi All,

If there is a requirement where you want to build the CAML query dynamically based on the parameters provided. Refer to the link below-

Here Avinash explained very simple way to build query dynamically.


The Web application at ‘’ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

Hi All,

When accessing SPSite object if you received above error message please try with changing target platform from x86 to x64.
I solve this problem by doing so. If you still not having any luck by trying above solution feel free to refer to below link -


Tuesday, September 11, 2012

Creating connected visual web parts

If you ever want to create the connected visual web parts then refer to below mention post. 

Here Ragavan explained it in very descriptive manner.

Thursday, August 2, 2012

Export/Import Site Column and Site Content Type from one site to other

Hi All,

If you are in a situation where you want to copy custom site column and custom content type you have created from one site to another, Below is the wonderful article on

Export/Import Site Columns with the help of Power Shell

Export/Import Custom Content Type with the help of Power Shell

Thanks Phil Childs for this great article.

Tuesday, July 24, 2012

Create, Read and Erase cookies in javascript

If you are looking for creating cooking in javascript here is the article on the same which explain you how to create, Read and then Erase cookies in javascript. Click Here to see the article.

Default user profile properties (SharePoint Server 2010)

If you are looking for the list of default user profile properties that SharePoint Server provides Please refere to this link.

It shows the default user profile properties.

Referece: technet.Mocrosoft.

Thursday, July 19, 2012

Check if Page is in Edit mode Javascript

I have written javascript code in my SharePoint Page which hide some controls on the page depending on the criteria.

I want to execute this script only when page is published and my problem was this script was executed if the page is in edit mode.

I have found that SharePoint maintain this html input control which is rendering on the page when it is in edit mode

You can refer to this control in javascript and do your work accordingly.

var pageMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value;

if (pageMode == ''){
//Page is not in edit mode

Wednesday, July 18, 2012

Get Worker Process ID associated with each Sharepoint site

If you want to know which worker process is running specific Sharepoint use folliwing commands in command prompt-

1. Start-->Run and type "cmd".

2. navigate to path "%windir%\system32\inetsrv\".

3. Type "appcmd.exe list wp".

This will show you all the worker processes running Sharepoint applications.

Retrive DLL from assembly in windows server 2008

Sometime there is requirement to retrive the DLL from the GAC but when we look at the assembly folder it looks like as shown below:

To view the available dll follow the steps

1. uninstall the dll using the following command in the run dialog box

regsvr32 -u C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll
2. Now type assembly in the Run dialog box.
3. Type C:\windows\assembly\GAC in address bar.
4. You can now able to view the folders for each assembly.
5. To revert back to orginal state type following command in the run dialog box

regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll
Thanks R Manimaran for the good post .

Tuesday, July 17, 2012

Get tags for specific page from all the user.

If you are working on Sharepoint 2010 social networking feature and your are using "GetTags" method from "socialdataservice".

The problem with this method is that it retrives all the tags for specific user only.

If you want to show the how many users tagged perticular page with specific tag then this methos will not help you.

I have found a very good article which explain how we can retrieve the all the tags for a specific location/page from all users.

Click here to see the article.
Thanks Elio for this wonderful article.

Monday, July 16, 2012

Editing Page in SharePoint Designer 2010 with Yellow Marked Code

When I have tried to edit my custom page layout it won't allow me to edit it and all the contents are showing up in Yellow marked color.

In addition, the Ribbon was missing some of the tabs. After spending some time I found solution to overcome this issue.

You simple need to click on "Advance Mode" button that is located on the Ribbon and thats it.

You can now edit the page and you'll also see the other missing tabs on the ribbon.