Question

I tried to create an application page in SharePoint 2013 by using Visual Studio, The page was created but, I don't know where it's created in SharePoint?

And I need to create it in Sub-site Pages library?

Was it helpful?

Solution

Application pages get created in Layout folder 15 hive.

Following is the path of Layout folder

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

If you want to create page in pages folder, you have to use module element. Following is sample code.

 <Module Name="Name" Url="Pages"  Path="PathInSolution">
    <File Url="Name.aspx" Type="GhostableInLibrary"  IgnoreIfAlreadyExists="FALSE"  Path="Name.aspx" Level="Published"  ReplaceContent="TRUE"/>

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top