Accessing Lists through Sharepoint Object model

Is accessing the list taking more time…

Consider the following while accessing the list  through Object model

  1. 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.
  2. SPWeb.Lists[“name”]
    This method loads the meta-data information of the all lists for the SPWeb object under consideration. and then it does SPList.Title comparison with metadata of all the lists returned and returns the first matching list from the SPWeb.Lists collection.

The first approach provides better performance than the second one.

If we pass GUID of the list  instead of a list name in the second approach it works similar to the first approach (SPWeb.GetList (url)), however passing a List Index would work similar to the second approach.

Sharepoint internet facing sites

My list of nicely built Internet facing SharePoint sites goes here .

These  sites are really amazing and were built on SharePoint.

http://www.ferrari.com/
http://www.swissarmy.com/
http://www.eastman.com/
http://www.choosechicago.com/
http://www.kroger.com/
http://www.westernaustralia.com/
https://www.flybuys.co.nz/
http://www.energizer.com/

How to enable verbose mode logging in SharePoint

To enable verbose mode logging follow the below steps:

a. Go to SharePoint Central Administration Page
b. Select Operations and select Diagnostics logging under Logging and Reporting
c. In diagnostic logging page, select the Verbose mode and click on ok

Note:
1) It is not advisable to turn the verbose mode logging on. Turn it off once the required log is collected.
2) Sometimes Windows SharePoint Services Tracing service will stop when we do these modifications, you may need to restart the service.

SharePoint Custom code acceptance checklist

The ability to customize sites by adding custom solutions gives Office SharePoint Server 2007 power and flexibility. However, a poorly designed or implemented executable module that runs in a SharePoint farm can do harm even beyond the scope of the Web application for which it was intended. Poorly implemented custom solutions can introduce security or performance risks, increase the cost of support, complicate deployment, and reduce productivity.
You can find more details @: http://technet.microsoft.com/en-us/library/cc707802.aspx

New Microsoft SharePoint 2010 details start to emerge

Following are the New features (rumored) to incorporated into new Sharepoint 2010

Source: www.zdnet.com

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 for Performance

http://msdn.microsoft.com/en-us/library/bb727371.aspx
How to Optimize SharePoint Server 2007 Web Content Management Sites for Search Engines

http://msdn.microsoft.com/en-us/library/cc721591.aspx

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 pages which are created using this page layout.

Here are the steps:

1)Navigate to Site Actions à Manage Content And Structure

2)Go to Master Page Gallery in the folder list

3)Select “Show Related Resources” in the Tool Pane

4)Select the Page Layout for which you want to list all the resources

5)A list of all the related resources for the selected page layout will be listed in the bottom window.

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 Scenario, :

Example Usage of Dot Net Reflector to Under Stand SharePoint Source Code:

· If you want to know on what is happening on load of OOTB Search Results Page then open Microsoft.SharePoint.ApplicationPages.dll and navigate to SearchResultsPage class and click on OnLoad method.

SharePoint DLLS:

Obfuscation:

Sometimes, not too often, when Reflector is disassembling source code for you, it will show “This item is obfuscated and can not be translated” instead of code. This is done for some of the more “sensitive” areas of the code

Downloads:

.Net Reflector: http://www.red-gate.com/products/reflector/

Add-ins: http://www.codeplex.com/reflectoraddins

Note: Review the end user license agreement (EULA) for the relevant Microsoft products before using this tool.