Let's first describe my work context:
I am working on SharePoint 2013 on-premise

I have created an App for a SharePoint 2013 Solution using Visual Studio 2012 with provider-hosted option. Two projects have been added: a SharePoint app project and a Web Application Project.

If I add an aspx page to the SharePoint App Project, the aspx.cs page is not generated.

Is there a way to add code behind files to my SharePoint App Project?

1 Answer 1


No, you can not have C# code in your App-project, only in you Provider Hosted project

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.