Become a member
Types of Pages in SharePoint — Application Page
There are two types of pages in SharePoint with respect to scope.
1- Application Pages
2- Site Pages
Application pages has an extension “.aspx”. They are present in the layout folder or sub folder of the layout folder in the SharePoint system folder , so that’s why they also called layout pages.
They are farm scoped. They are accessible in all web applications mean it is visible across the farm. Application pages are inherited from “Microsoft.SharePoint.WebControls.LayoutsPageBase”. This is the type in the server object model that is derived from System.Web.UI.Page that adds value for application pages.
→ Application Pages are Link to master page used by current site.
Most application pages use the default master page for the current working SharePoint site. We make sure this by setting DynamicMasterPageFile=“~masterurl/default.master”.
This “~masterurl/default.master” is the token that is replaced by the the actual URL of the master page of the site. In this way that site will show the default master page.
<%@ Page Language=”C#” Inherits=”LayoutsPageBase”
Application Pages can use inline Coding.
App pages can also Inherit from Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase, if we want anonymous users to access our pages.
Custom application pages, as mentioned before, will be created in the new folders in case they are not over ridden or deleted by the any new SP update.
Look the application pages are present in the layouts folder in template.
It is not good idea to create a page and put it in layouts. instead we should put it through solution package(will discuss later).
The “main” is for the main place holder.
The “PageTitleInTitleArea” and “Title” is for holding title.
On Clicking we are initiating the event of changing text.