Thursday, June 2, 2011

how to check if member is in group

isExist = IsUserMemberOfGroup(currentUser, groupName); 

Saturday, December 25, 2010

ISO format of date needed in list creation via soap

Specify date field value in ISO format, for example 2016-03-09T00:00:00Z

Thursday, November 25, 2010

custom list form must exist in e folder for the list

this is must . if form are outside they wouldn't work

Monday, October 25, 2010

Lookup across site collection

Out of box not possible
Third party available..

Saturday, September 25, 2010

How to exclude items from a crawl based on items properties

custom creator can be created to fulfill the request

Wednesday, August 25, 2010

Edit in datasheet does not work with webpart filter

create seperate dataview and then datasheet will work

Sunday, July 25, 2010

progmatically setting home page of publishing site

 Publishing sites to set the Home Page.
you can set SPWeb.RootFolder.WelcomePage

Friday, July 16, 2010

User deleted and re-added to AD - Profile not found

You need a temp account on which you migrate the profile first then to the id.

Friday, June 25, 2010

how to update users email if there is no interface in UI

Dont go to database. instead use the power shell to do same

Add-PSSnapin Microsoft.SharePoint.PowerShell
$site = Get-SPSite http://example.com
$web = $site.RootWeb
$user = $web.SiteUsers.GetByEmail("usr@example.com")
$user.Email = "user@example.com"
$user.Update()

Thursday, June 24, 2010

sharepoint 2010 sesion state



  1. Enter the following PowerShell command in the SharePoint 2010 Management Shell window:
Enable-SPSessionStateService –DefaultProvision
  1. On each web application for which you want to use session state, edit the web.config file and set the enableSessionState property of the pages element as follows: