Application page vs Site page in SharePoint 2010


There are different types of pages available in SharePoint Foundation 2010. I am addressing here primary page types, Application Page and Site page.

Application Pages:
  1. Application pages are stored in physical file system, i.e., \14\Template\Layouts\.
  2. Since stored in physical location, these are accessible across Web Application
  3. We can add server code as In-line or code behind
  4. Do not have dynamic Web Parts or Web Part zones but can have Static web parts
  5. Application pages are not cusotmizable by end users. These are controlled by web application administrators
  6. Generally these pages are used when custom code is required, and should be available through out the web application
    7. These are parsed in direct mode., Compiled initially and cached.
Site Pages:
  1. When a site page is created first time a reference is stored in content db. When end user customizes the page, reference in content db is replaced with site page.
  2. These are customizable using browser or SPD
  3. Inline-coding is not supported in custom site pages but non custom site pages can contain the server side code.
  4. Site owners can customize site pages
  5. Using PageParserPath one can provision server side coding target location. All the pages stored in this location can be allowed to have server code.
  6. Generally these pages are used when custom code is required.
  7. Uncustomized site pages  are compiled in safe mode; safe controls and no inline coding etc
  8. Site pages are 2 types: Standard(inherited from WikiEditPage) & WebPart (Inherited from WebPartPage)

Comments

Popular posts from this blog

SharePoint 2019 New Features

Move the list items from one list to another list using PowerShell - SharePoint 2010

Email Validation for SharePoint list column