Tips n Tricks

SharePoint Development Tools

The following is the list of tools that I happen to use during Sharepoint Development. These tools help the SharePoint developers to do their work efficiently.

Visual Studio Extensions for Windows SharePoint Services 3.0 Tools
 

Tools for developing custom SharePoint applications: Visual Studio project templates for Web Parts, site definitions, and list definitions; and a stand-alone utility [...]


Running Code with Elevated Privileges

During custom development in Sharepoint, sometimes your code must call restricted methods within the Windows SharePoint Services object model even though the request is initiated by a non privileged user. In such cases you must be able to elevate the privilege of your code as it executes on web server.  Meaning, instead of your code [...]


How to log errors to SharePoint Log file

When you work with share point custom code development such as Web parts, Features, Event Handlers, and Workflows etc., you can use the Sharepoint built in logging mechanism to log the errors instead of creating custom logging mechanism.
In SharePoint, log files are located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOG
To log errors/messages/exceptions to the [...]


MOSS 2007 limitations list for acceptable performance

If you are planning for big Sharepoint (MOSS 2007) Implementations, consider these limitations and guidelines for the best Sharepoint (MOSS 2007) Implementation.
The following table lists the recommended guidelines for site objects.

Site object

Guidelines for acceptable performance

Scope of impact when performance degrades

Site collection

50,000 per content database

Farm

Site collection

150,000 per Web application

Farm

Web site

250,000 per site collection

Site collection

Subsite

2,000 per Web [...]


Accessing Lists through Sharepoint Object model

Is accessing the list taking more time…
Consider the following while accessing the list  through Object model

SPWeb.GetList(string url)
In this case, first it gets the list GUID from the url(database hit), then it loads the Meta data for that specific list.
SPWeb.Lists[“name”]
This method loads the meta-data information of the all lists for the SPWeb object under consideration. and [...]


Site Content And Structure : Find all the pages created using Page layout

In CMS Dependent Report feature is used to identify all the postings which are created using the Template. In Sharepoint Similar feature is available where you can find all the pages which are created using the page layout. This is also useful when you modify the page layout and you want to test all the [...]


Understand Sharepoint using Dot Net Reflector

Using .NET Reflector, you can browse the classes and methods of an assembly, you can examine the Microsoft intermediate language (MSIL) generated by these classes and methods, and you can decompile the classes and methods and see the equivalent in C# or Visual Basic .NET.

Dot Net Reflector Can be used for the following in SharePoint [...]


Manage Site Content And Structure in Sharepoint Server 2007

In a Sharepoint the Site Content and Structure page is cool tool for site administrators to manage site content and structure. You can do lot of stuff here in a easy and efficient way
You can do the following
1)    Create Sub site/pages/files
2)    Delete Sub sites/ pages/ files
3)    Move files between libraries
4)    Delete Sites/ files
5)    Bulk Check in/ Checkout/ [...]