Saturday, December 10, 2016

Allow anonymous to access Application Page in SharePoint 2013

 In general, use UnsecuredLayoutsPageBase as a base class for pages to which even unauthenticated users must have access, such as a login page. For a page base control to which access can be limited to users who possess certain rights, use LayoutsPageBase.

public class AppPage : LayoutsPageBase

{    

    protected override bool  AllowAnonymousAccess

    {

        get

        {           

            return true;

        }

    }

}

Or Simply

public partial class MyAppPage : UnsecuredLayoutsPageBase

{

    protected void Page_Load(object sender, EventArgs e)

    {

    }

}

 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist


Step by step Creating Application page in SharePoint 2013 Using Visual Studio How to fix error "The name ‘InitializeControl’ does not exist in the current context" in Visual Web Part

Monday, December 5, 2016

Step by step Creating Application page in SharePoint 2013 Using Visual Studio

To know About Application page post Application Page in SharePoint 2013 .

 Follow the steps to create application page in SharePoint 2013

1.      Open Visual Studio Run as administrator.

Click on new project select SharePoint solutions under the office/SharePoint from which select project type as SharePoint 2013- Empty Project.

New Project

2.      Select the Web Application and Deploy as Farm Solution


Deploy Solution

3.      Right Click on Project and Add new Item


4.      Select the Application Page template.


New Application Page

5.      By Default it Creates layout folder automatically and places Application page in that folder.

Solution Explorer

6.      If we navigate to the page using URL Then we can able to see the page as below

7.      The Physical Location of Application is resides in 15

   C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist

Application Page in SharePoint 2013 Allow anonymous to access Application Page in SharePoint 2013

Saturday, December 3, 2016

Application Page in SharePoint 2013

 An application page is a web page that is deployed physically inside the SharePoint Root directory under the following path. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\.

An application page is different from a site page because it is not available in the content database.

Since application pages are compiled once, so it is faster
Example of Application Pages like settings.aspx, accessdenied.aspx.

An application page is a web page that is used in a SharePoint website. An application page contains content that is merged with a SharePoint Master page. A master page enables application pages to share the same appearance and behavior as other pages on a SharePoint site. We can create application pages in Visual Studio by adding an Application Page item to a SharePoint project. 


To create application page post Step by step Creating Application page in SharePoint 2013 Using Visual Studio

 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist

Step by step backup and Restore IIS in SharePoint 2013 Step by step Creating Application page in SharePoint 2013 Using Visual Studio