How To
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 [...]
SharePoint Screencasts and Visual Howto’s
A huge list of Visual Howto’s related to Microsoft Office SharePoint Server 2007 is available @ http://msdn.microsoft.com/en-us/office/aa940989.aspx.Office Visual HowTo’s provide instruction, code examples, and short how-to videos
If you are new to Sharepoint 2007, take a look at the following screencasts series.
Building ASP.NET Web Parts for Windows SharePoint Services 3.0
Creating a Custom Page Layout with [...]
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 [...]
Performance Optimization for WCM Sites & Optimize Sharepoint Site for Search Engines
In internet facing scenario performance optimization is a key thing for the successful implementation of any website. Microsoft has provided good articles related to Performance Optimization for the WCM site in SharePoint & also on how to optimize SharePoint for search engines.
Here is the link:
How to Optimize a SharePoint Server 2007 Web Content Management Site [...]
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 [...]
