Visual Studio 2012에서 SharePoint 2010 프로젝트에서 .aspx 페이지를 추가하는 방법은 무엇입니까?

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/52188

문제

나는 다음 링크를 통과했다 :

http ://www.codeproject.com/tips/312544/how-to-dd-custom-asp-net-page-using-rayouts-folde

http : // sharePointSolution2010.blogspot.in/2011/05/add-custom-aspx-page-in-sharepoint-2010.html

.aspx 페이지를 추가하는 올바른 방법입니까?

내 요구 사항은 사용자 정의 목록 데이터를 .aspx 페이지에 표시하는 것입니다. 코드가 필요합니다.

경고 이메일에는이 .aspx 페이지를 열려면 링크가 있습니다.

.aspx 페이지를 추가하는 올바른 방법은 무엇입니까?VS2012에서 사용할 수있는 직접 옵션이 없으므로

도움이 되었습니까?

해결책

Not 100% sure about Visual Studio 2012, but in Visual Studio 2008 & 2010, I had to modify "....csproj" and add a Projecttypes Guids for web projects to make this project web anf let me add ".aspx" or any other web related contents to project.

here's link to few known ProjectTypeGuids

Hope it helps :)

다른 팁

I have an option in VS2012 to add an Application Page to the project. But it requires your project to be Farm Solution. Otherwise, you can't deploy to SharePoint hive (cause you need to place page to _layouts folder to have codebehind).

Also you can install CKS DEV to have more option for adding new items in SP project.

Why don't you make a Visual Web Part and deploy everything on a Web Part Page? Create a Web Part Page from SharePoint...

You can see here is explained the difference between using a Web Part and Application Pages

You can achieve everything you need in a Visual Web Part, I hope this helps

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top