Click here to Skip to main content
15,041,788 members
Articles / Web Development / ASP.NET
Posted 1 Dec 2008

Tagged as


268 bookmarked

SharePoint Quick Start FAQ Part 1

Rate me:
Please Sign up or sign in to vote.
4.83/5 (103 votes)
7 Mar 2012CPOL7 min read
SharePoint Quick Start FAQ Part 1

Table of contents

In case you are new to SharePoint, please start with the below video Learn Sharepoint in 8 hours: -

Image 1


This is a quick start FAQ for people who are new to SharePoint. We will warm up with some theory in the first two articles and then do some practicals on the same lines. I have written a 10 part series for SharePoint and I hope you will enjoy it. This is the first part from the series. Get warmed with the theory first and then the rest of SharePoint is a breeze. This article covers SharePoint basics and walks through how SharePoint works with ASP.NET.

What is SharePoint?

SharePoint helps team members to connect and exchange information in a collaborative manner. It helps to centralize enterprise information for efficient functioning. For instance, below is how a normal organization works. Files and documents scattered in individual PCs and data transported according to custom protocols. The communication protocol for sending data is person dependent. Some would use email, some would share a drive, etc.

Image 2

SharePoint unites all documents into one centralized place and unifies the data transport mechanism. To summarize, it is a central enterprise information portal.

Image 3

What is WSS and MOSS?

Microsoft has divided SharePoint products into two parts. One is called WSS (Windows SharePoint Services) and the other is MOSS (Microsoft Office SharePoint Server). WSS is the platform in which MOSS is built. The WSS part is licensed through Windows 2003 Server and it does not cost anything. MOSS is a separate product by itself and needs licensing and it has a significant cost. WSS is good for small teams and small projects. MOSS has extra functionalities, in other words, Value Added Services. So the choice between WSS and MOSS will depend on the budget of the project and the VAS provided by MOSS.

Image 4

How does WSS actually work?

WSS does not work in an isolated fashion. It needs help from two more products: IIS (Internet Information Server) and SQL Server.

Image 5

How does WSS work with IIS?

In order to understand how WSS works with IIS, we need to first understand the concept of HttpHandlers and HttpModules. If you are not aware of this, you can refresh about them here.

Using HttpHandlers and HttpModules, a request is first passed through the SharePoint runtime and then passed to the ASP.NET runtime (aspnet_isapi.dll).

Image 6

If you open the web.config file of a WSS enabled IIS web application, you can see the application runtime handlers and modules.

<add verb="GET,HEAD,POST" path="*" 
   type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, 
         Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

We have highlighted the application runtime module.

<add name="SPRequest" 
        Microsoft.SharePoint, Version=, Culture=neutral, 
        PublicKeyToken=71e9bce111e9429c" />

What is site and site collection?

SharePoint is all about enterprise data. When we talk about enterprise data, it looks as shown in the figure below. In other words, grouping and sub grouping of data.

Image 7

SharePoint extends the IIS web application structure to accommodate the above defined data structure using site and site collections. We will see in the later sections how to create site collections.

Image 8

What is the main advantage of using site collections?

As said previously, SharePoint is all about data and data should be properly authenticated / authorized to users. By defining the structure in site and site collection, we can define roles and responsibilities according to data. For instance, in the above figure, we will assign all HR users to the payroll, recruitment, and assessment site. These users will not be assigned to the account site collection. Same holds true for accounts users.

So when you design your hierarchy of site and site collection, you need to keep in mind the enterprise hierarchy structure and design accordingly.

What is the use of SQL Server in SharePoint?

SQL Server is used to store content and configuration information. We have two types of databases: content databases and configuration databases. We had said previously that content is according to a site. So every site has its own content database. For instance, if we have a payroll site and recruitment site, they have their own content databases. Configuration database is for the entire site as they are used in web farms, site configuration, and a lot of other things which are generic and common across all sites.

Image 9

What is the concept of a virtual path provider?

Any project has two parts: the standard and common part and the customized version. In ASP.NET, we have two types of pages for any project: one is the common ASPX pages and the other is customized ASPX pages. The common pages are stored on file directories while the customized versions of pages are stored in the content database.

In other words, we need an abstract mechanism by which we can render pages from the SQL Server content database and also from the virtual directories. This is achieved by using the virtual provider provided by SharePoint. So for all customized pages, the virtual provider reads from the content database and passes them to the ASP.NET runtime. For all common pages, it goes to the directory, parses it, and the passes it across to the ASP.NET runtime.

Image 10

The virtual provider is an abstraction which loads the page from the content or the file system depending on whether it’s customized or common pages, and passes it to the ASP.NET runtime.

Image 11

What is the concept of ghosting and unghosting in SharePoint?

In SharePoint, most site pages derive from templates. The custom pages only store the differences between them. The template is loaded in memory and applied to the custom pages on the fly. In other words, the template is stored in a cache. This definitely brings in performance and flexibility. Flexibility is in terms that when we change the template page, it’s applied to all custom pages. These pages are loaded from the file system. So pages which are loaded from the file system are termed as ghosted pages.

Image 12

If the page data is loaded from the content database, it’s termed an unghosted page.

As a note, let me clarify the concept of document and content table as we are already trying to understand the concept of ghosting and unghosting. As we know, SharePoint stores all pages in the database. Looking from 50,000 feet, it has two tables: the document table which has the entry of the page and the content which has the source code of the ASPX page.

So when a page is requested, it first checks in the document table and then goes to the content table to load the page. If it does not find the data of the page, it goes to the file directory to load the page. This loading is done by the ASP.NET runtime itself. But if there is data present in the content table, then it’s loaded by the ‘safe mode’ parser.

Image 13

What is the concept of Safe Mode Parser in ASP.NET?

As said in the previous section, there are two tables: document and content. If the page is stored in the content database, it’s loaded by the Safe Mode Parser which is a page parser provided by SharePoint. If there is no data found in the content, it’s loaded from the file directory by the ASP.NET runtime.

What is the concept of Site pages and Application pages?

Site pages are customized pages and are saved in the content database. So when you use the SharePoint designer to make custom changes, it saves the changes into the content database. If you want to make generic pages in a site collection which will be used by everyone, like for instance the ‘Settings.aspx’ page, then you need to use application pages.

In other words, Site pages are nothing but customized pages stored in content, while application pages are generic pages which will be used by all the sites in a site collection.

What Next?

In part two, we will try to get hands on with SharePoint, create site collections, create application pages, and understand the concept of features.

Other Links for SharePoint


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Comments and Discussions

QuestionVery Nice Article Pin
kingsa9-Oct-14 20:43
Memberkingsa9-Oct-14 20:43 
GeneralMy vote of 4 Pin
Ahmed Omair5-Jun-13 20:04
professionalAhmed Omair5-Jun-13 20:04 
GeneralVery Nice article Pin
soyeb9229-Apr-13 19:49
Membersoyeb9229-Apr-13 19:49 
GeneralMy vote of 5 Pin
ajis232621-Mar-13 1:45
Memberajis232621-Mar-13 1:45 
GeneralMy vote of 5 Pin
Brian Pendleton26-Sep-12 3:08
MemberBrian Pendleton26-Sep-12 3:08 
GeneralMy vote of 5 Pin
Biswojit Kumar Sahu9-Jun-12 18:17
professionalBiswojit Kumar Sahu9-Jun-12 18:17 
GeneralMy vote of 5 Pin
irshadmohideen24-Mar-12 3:50
Memberirshadmohideen24-Mar-12 3:50 
QuestionChris maunder something has gone wrong with my images Pin
Shivprasad koirala7-Mar-12 7:57
MemberShivprasad koirala7-Mar-12 7:57 
GeneralMy vote of 4 Pin
Arun4u3329-Sep-11 2:13
MemberArun4u3329-Sep-11 2:13 
GeneralMy vote of 5 Pin
lurkbat17-Jun-11 0:09
Memberlurkbat17-Jun-11 0:09 
GeneralMy vote of 5 Pin
shady197923-Apr-11 16:56
Membershady197923-Apr-11 16:56 
GeneralMy vote of 5 Pin
tvpm2-Feb-11 22:36
Membertvpm2-Feb-11 22:36 
GeneralNice article indeed; yet require some little more help Pin
TheFrnd24-Nov-10 19:47
MemberTheFrnd24-Nov-10 19:47 
GeneralNice Pin
santosh poojari23-Jun-10 2:19
Membersantosh poojari23-Jun-10 2:19 
GeneralSuperb One... Pin
navsmca9-Dec-09 0:42
Membernavsmca9-Dec-09 0:42 
GeneralExcellent Start up for Sharepoint. Pin
Ramkumar Sethumurugaun19-May-09 2:24
MemberRamkumar Sethumurugaun19-May-09 2:24 
Generalnice work Pin
Jeff Circeo27-Apr-09 21:56
MemberJeff Circeo27-Apr-09 21:56 
GeneralGot my 5 Pin
leodi9-Feb-09 2:53
Memberleodi9-Feb-09 2:53 
GeneralGood intro Pin
Srinath Gopinath8-Feb-09 23:28
MemberSrinath Gopinath8-Feb-09 23:28 
GeneralMy vote of 2 Pin
Lars Støttrup Nielsen18-Jan-09 21:17
MemberLars Støttrup Nielsen18-Jan-09 21:17 
GeneralRe: My vote of 2 Pin
Anjum.Rizwi17-Feb-09 18:43
professionalAnjum.Rizwi17-Feb-09 18:43 
GeneralRe: My vote of 2 Pin
Satya Priya25-Feb-09 1:27
MemberSatya Priya25-Feb-09 1:27 
QuestionWhat is site collection Pin
Populate12310-Dec-08 23:46
MemberPopulate12310-Dec-08 23:46 
GeneralVery nice article.. Pin
rilov8-Dec-08 9:54
Memberrilov8-Dec-08 9:54 
Questionsharepoint database article Pin
Rahul.C#Net8-Dec-08 7:49
MemberRahul.C#Net8-Dec-08 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.