How to add custom column into a Page Layout in SharePoint

How to add custom column into a Page Layout in SharePoint
We can add custom columns easily by using "listItemProperty"

->Navigate to SharePoint Designer

->Open your Page Layout

->Drag and drop "ListItemProperty" to desired location in the toolbox, server controls.

we have something like the following:

<SharePointWebControls:ListItemProperty runat="server" id="ListItemProperty1"/>

In this we can add "Property" value using desired property

Example:

1) <SharePointWebControls:ListItemProperty runat="server" Property="DocumentUrl" id="ListItemPropertycustom1"/>

2) <SharePointWebControls:ListItemProperty runat="server" Property="Assoociated_x0020_Document_x003a_Link_x0020_Title" id="ListItemPropertycustom2"/>

Note:

->If we have spaces in a custom field use "_0x0020_"

->We are calling secondary lookup fields, then the colon is represented by "_x003a_"

Reference: List of Custom column field IDs

How to Add Page Title on their browser's title bar in SharePoint Programatically and Customly

How to Add Page Title on their browser's title bar in SharePoint Programatically and Customly

Add Page Title Customly 

        
        Navigate to SharePoint Designer -> Open your Page Layout -> In Content "PlaceHolderPageTitle" place drag and drop "ListItemProperty" in the toolbox, server controls.

we have something like the following:

<SharePointWebControls:ListItemProperty runat="server" id="ListItemProperty1"/>

In this we can add "Property", I am adding "BaseName" Property to show the title on their browser's title bar in the Page.

<asp:Content id="Content1" ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
 <SharePoint:ListItemProperty ID="ListItemProperty1"  Property="BaseName" maxlength="40" runat="server"/>
</asp:Content>

Add Page Title Programatically 

           

              I  created Custom PageLayout for my pages programatically, so in that PageLayout page i call "ListItemProperty" in PlaceHolderPageTitle" place.

<asp:Content id="Content1" ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
 <SharePoint:ListItemProperty ID="ListItemProperty1"  Property="BaseName" maxlength="40" runat="server"/>
</asp:Content>




Get QueryString Value in SharePoint webpart and pass that value to browser's title bar in the page Programatically

Get QueryString Value in SharePoint webpart and pass that value to browser's title bar in the page Programatically

          Using "HtmlTitle" we can pass the browser's title bar in the Page. I am passing QueryString Value with Page url in the list, so first i am getting the Query String value and passing that value to "HtmlTitle ". The following is the code for getting QueryString Value and pass that value to title bar in the page.

 using System.Web.UI.HtmlControls

public string querystringvalue = string.Empty;
 protected void Page_Load(object sender, EventArgs e)
        {
                      //Getting Query String Value
                      querystringvalue = Convert.ToString(HttpContext.Current.Request.QueryString["value"]);
                       HtmlTitle tagTitle = new HtmlTitle();
                       tagTitle.Text = "querystringvalue ";
                       Page.Header.Controls.Remove(   
                          Page.Header.FindControl("PlaceHolderPageTitle").Parent);
                        Page.Header.Controls.Add(tagTitle);
        }

Delete App pool in Sharepoint Using PowerShell

Delete App pool in Sharepoint Using PowerShell
How to remove unused Application Pool in SharePoint

There is only one way to remove the application pool for SharePoint, using powershell command.

First open the SharePoint 2013 management power shell as a administrator

Now we have to get the all application pools.

'Get-SPServiceApplicationPool'

Now we can able to see all Application Pools.

Get-SPServiceApplicationPool -Identity <Name of the application pool>

Now we can to delete what ever the application pool we want.

Remove-SPServiceApplicationPool 'Name of the Application Pool'
 Default is "Y">:Y

Popularity trends in SharePoint 2013

      In SharePoint 2013 we can easily identify the usage of trends and find out at what times activity is higher or low. We can check Popularity Trends reports for a "Site","Site Collection", page and Library level.

View Popularity Trends for a Page

  Navigate to Page in Site Content, Go to Ribbon and click on "Popularity Trends".



Save and Open that file, we can see the Daily and Monthly usage of the page.



View Popularity Trends report for a Site Collection level


Navigate to "Site Settings", Click on "Popularity and Search Reports", in the "Site Collection Administration" Section.

On the View Usage Reports page, click "Usage" on "Usage Reports" Section.

Click Open the report in Excel, in the message box.

View Popularity Trends report for a site level


Navigate to "Site Settings", Click on "Popularity Trends", in the "Site Administration" Section.

On the View Usage Reports page, click "Usage" on "Usage Reports" Section.

Click Open the report in Excel, in the message box.

View Popularity Trends report for a Library and List level


Navigate to List or Library ,

List: Click the Items tab in a list,then On the Ribbon click Popularity Trends.
Library: click Files tab in a library,then on the Ribbon click Popularity Trends.

Note: 

1)  If Popularity Trends option missing in Document library ribbon interface ,
Navigate to site settings, click on Site collection features" under Site Collection Administration section. Activate the "Reporting Feature", now we can able to see the Popularity trends option.

2) To updating usage reports,we need to configure Enable Usage data Collection
Navigate to central admin -> go to Monitoring section -> Configure usage and health data collection.



http error 503. the service is unavailable

When i am trying to open Central Admin in SharePoint 2013, I got this issue http error 503. the service is unavailable.
                
Resolving this issue, Go to Start->IIS->Click on Applicati on Pools->Select SharePoint Central Administration v4->Left side select advanced settings->Click on Identity


Click on Set Enter Credentials with Username and Password Click Ok.


After completing the Steps Reset the IIS
Refresh the Page now we can able to open the Central Admin.