More News
SharePoint Developement

Make Sharepoint fields ReadOnly in List Forms using Javascript

Add Content Editor Web Part in any of your New or edit list form. Add javascript code shown below in any text file and add it some document library in your SharePoint site. In SetReadOnly method, pass html field type (input,textarea etc) as first argument and field Display name as second argument. Modify Content Editor […]

Claim Based Authentication

Configure SharePoint Web Application to use third party identity provider

To configure your web application to use 3rd party identity provider, it is very important that you get ALL the correct X.509 certificates that is issued by Third Party Identity Provider(TPIP). These certificates establish the trust between third party identity provider and SharePoint farm. I will soon publish another blog that will provide end to end solution to develope […]

Sharepoint Administration

Configure SharePoint site collection for Content Management System

For a site collection to be used as a content management system, it needs to be accesible in two different modes (or more appropriately called zones). Zone one (Default zone) will only allow company’s internal users such as content authors, publishers and approvers to login and create content, publish and approve it. Zone two (Internet zone) will allow public access […]

SharePoint Developement

How to Add XsltListView webpart to sharepoint publishing page

 In your publishing page, add below mentioned XML with these replacements – Replace,  ListDisplayName – name of your sharepoint List  Title – Title of your webpart ID – Generate a unique and add to it. ID attribute in <View> element should have unique ID. In <ViewFields> collection, add the viewfields as per your requirement. Add your […]

SharePoint Developement

Create a custom list view with custom xsl in SharePoint 2010

To create a custom view with custom xsl, copy and paste the code below under <Views> element in your list schema with following changes – 1) Replace text under square brackets with your text. In the case of ‘BaseViewID’, make sure it’s not same as any other view in the list. 2) Make sure your […]

SharePoint Developement

Custom xsl to generate raw xml of any list view in Sharepoint 2010

While working on Lists and document libraries in sharepoint, it is very likely to come across list related issues. One suhc issue can be that you have configured list view webpart to use custom xsl but on the published page, custom xsl is not rendering correctly. One of the possible approaches to correct these kind of  issues […]

InfoPath and Nintex

How to check if User Account is disabled in Active Directory from SharePoint using Nintex

Let’s jump straight in. It’s pretty straightforward to check if User Accout is disabled/enabled in Active Directory from sharepoint using Nintex.  For this demo, just create a sharepoint list and  simply manually add emailIds of users from AD in it. You can also write a server code to copy users from AD into SP list which […]

InfoPath and Nintex

Lazy approval with Nintex Workflow

Today, I want to talk about very useful feature provided by SharePoint workflows called ‘Lazy Approval’. This feature allows you to get input from approvers or users via email. Approver can ‘Approve’ or ‘Reject’ requests without logging to the sharepoint site. It also enables users to fill form and submit data into SharePoint list through email. To see Lazy […]

InfoPath and Nintex

Map InfoPath people Picker to Sharepoint People Picker

Actuallly, we can’t map Infopath people picker field to Sharepoint people picker field directly using InfoPath designer. There is a need to play a little trick here. I created this one stop solution by reffering to different blogs/articles on internet but no article had the complete solution. Solution will be a combination of InfoPath and Nintex […]

SharePoint Developement

Change the default scope of SharePoint calendar view to week

Actually using object model we can’t set the default scope of Calendar view. Let’s see how the SharePoint UI do it and then try to replicate the same in our solution. When you change default scope of calendar view through UI, SharePoint sends RPC request to _vti_bin/owssvr.dll.  To see what RPC request SP sends, let’s modify the default scope through sharepoint UI and check the […]

SharePoint Developement

InvalidQueryExpressionException – the query expression is not supported

The best way to retrieve results from sharepoint list in terms of performance using client object model is to use ‘include’  with lambda expression. using (var context = newClientContext(http://server/site/sitecollection)) {  List currentList = context.Site.RootWeb.Lists.GetByTitle(“MyList”);  CamlQuery camlQuery = newCamlQuery(); camlQuery.ViewXml =“[YourViewXmlhere]”;  ListItemCollection collListItem = currentList.GetItems(camlQuery); context.Load(collListItem, items => items.Include(item => item[“ID”], item => item[“SomeField1”], item => item[“SomeField2”])); […]

.Net Developement

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Solution – In IIS, Change the app pool id to some which has Pipeline mode as ‘Classic’.    

.Net Developement

FUSLOGW – Exception has been thrown by the target of an invocation (web.config) at ProvidersHelper.InstantiateProviders

If you see something like this in your event log , then your next step should be to check the assembly binding log. As you can see it’s a very generic error and doesn’t provide much details about the actual root cause, use this tool – http://msdn.microsoft.com/en-us/library/e74a18c4%28v=vs.71%29.aspx. Exception information:     Exception type: ConfigurationErrorsException     Exception message: […]

.Net Developement

Unable to compile an ASP.NET 2.0 project in Visual Studio 2010 on Windows 7 x64/x32 that references System.Web.Extensions (ASP.NET AJAX 1.0).

If your project is referencing some dll which has a dependency on System.Web.Extensions.dll then it is most lilkely that you may receive this error – The primary reference “MyClass, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL” could not be resolved because it has an indirect dependency on the framework assembly “System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35” which could not be resolved […]

SharePoint Developement

SharePoint Feature Stapling

Feature stapling allows you to associate a set of  SharePoint features with any site definition. Therefore, whenever any site collection is provisioned from that site definition, the features associated with it gets activated automatically. Lets go ahead and see how to apply feature stapling. For this demo, I would staple these 2 OOB sharepoint features with Team Site (Site […]

SharePoint Developement

Enable anonymous access to sharepoint 2010 site

Just follow these steps to enable anonymous access to your sharepoint 2010 site. Step 1 Open SharePoint Central Adminsitration. Under Application management tab, Click on Web Application management. Step 2 Choose your web application and click on ‘Authentication Providers’ link on the ribbon.   Step 3  Under ‘Zone’, Click on ‘Default’.  Step 4 Tick ‘Enable […]

SharePoint Developement

Create a custom Web Template in Sharepoint 2010

Before we start creating a custom Web template, I think it’s important to understand do we really need to create one? Even though web templates are easy to create and maintain as compared to site definitions, I would not recommend web templates simply because of the fact that they gets stored in content database. Thus, there is always an […]

Sharepoint Administration

Backup and Restore Site collection in Sharepoint 2010

Steps to take backup of site collection 1) Open Central Administration. Go to ‘Backup and Restore’. 2) Under ‘Granular Backup’, click on ‘perform a site collection’. 3) Choose  any site collection from the site collection list. Enter destination for the backup file. and click on ‘Start Backup’. 4) Once backup is finished, check if the backup […]

SharePoint Developement

PrePopulate Sharepoint People Picker field with logged in user in list forms – Sharepoint 2007

There is this very common requirement to prepopulate sharepoint people picker field with logged in  user name in New and Edit forms of  sharepoint list. Below is something one can consider to achieve this – Using Sharepoint designer, add the following javascript code in Newform.aspx or EditForm.aspx to Pre-populate the logged in user as a default in sharepoint people picker […]

SharePoint Developement

Send email to multiple users using Sharepoint Designer 2007

To send email to multiple users, stored in multi-user people picker field, using sharepoint designer 2007, one needs to play a little trick. Please do as follows: 1) Create a variable ,  create a new action of type Build Dynamic string:         Click on “Actions” and choose “Build Dynamic string”. Click on “Dynamic string”, this will open a new multiline textbox. Click on Add […]