Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

well I know definations of these terms as mentioned:

Ghosted pages: Pages which are on file system and not on content db.

Unghosted pages : pages which are on content db.

Application Pages : normal asp.Net pages stored on file system.

site pages : Normal content pages stored in db.

According to these definations Site pages should always be Unghosted and Application pages should always be Ghosted.

Now here comes the problem: SP virtual path provider: provides virtual path for both ghosted and unghosted site pages. How site pages be ghosted? This msdn link(http://blogs.msdn.com/b/steve_fox/archive/2010/03/08/ghosting-unghosting-in-sharepoint-2010.aspx) also talk about ghosting and unghosting of site pages.

Could some one please explain to me these things.

share|improve this question
1  
Ghosted and Unghosted not a page types, it's a page state. Application page is always ghosted as you mentioned, but site page can be ghosted or unghosted (if changes have made through SharePoint Designer) –  Kai Feb 16 '13 at 17:17
    
could you please refer some material to understand how and why the site pages be in ghosted state... –  Mohit Feb 17 '13 at 5:25
    
I recommend you to read "WSS Integration with ASP.NET" chapter from book "Inside Microsoft Windows SharePoint Services 3.0" –  Kai Feb 17 '13 at 11:23
add comment

2 Answers

The Ghosting/Un-Ghosting (or if you prefer the new Term Customized/Un-Customized) makes a real difference when you consider _layouts page, wcf services, etc. in the context of the SP Virtual Path provider (which then loads the Page Parser)

Example - A Document Workspace has a default.aspx (physical) where as Team Site in SP 2010 has a Wiki Page (database). Therefore Site Pages can also be physical, until you customize any of them - via SPD.

I found the best explanations here http://msdn.microsoft.com/en-us/library/bb892189(v=office.12).aspx#WSS3Inside_Integration and http://sharepointjha.wordpress.com/2011/05/16/virtual-path-provider-in-sharepoint/ and http://sharepoint.infoyen.com/2012/03/21/site-pages-vs-application-pages/

share|improve this answer
    
Last point on site page section of the third link shared by you says .”SPVirtualPathProvider” is the virtual path provider responsible for handling all site pages requests. It handles both ghosted and unghosted pages requests. Which again raises the same question how site pages can be ghosted. –  Mohit Feb 16 '13 at 10:38
add comment

Take a look at this video on building custom SharePoint Site Pages. In it I explain customized/un-customized (ghosted/un-ghosted). Since Application Pages are not put into the content database they are never ghosted.

The Inside Microsoft Windows SharePoint Services 3.0 is another good source for discussion of Site and Application Pages

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.