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?

有帮助吗?

解决方案

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"/>

许可以下: CC-BY-SA归因
scroll top