Creating Custom Profile Properties through Code (C#)

I recently needed to add several custom profile properties through a web part for tracking a users’ security preferences for a particular web application.

The following is the method used to create four new properties in the SSP:

(more…)

Custom Method for Checking Permissions on a SPWeb Object

The out-of-the-box method DoesUserHavePermissions() on an SPWeb object does not take indirect membership into account (i.e. the current user is a member of a domain group that has access the the SPWeb being checked).  To get around this, I use the following method (DoesUserHavePermssionsToWeb(SPUser, SPWeb)):

(more…)

Performance Optimization WordPress Plugins by W3 EDGE