Question

Did a simple deployment of sharePoint Hosted App from Visual Studio... it worked - but I want to understand the limits of what I can do from visual studio.

I see no aspx page cs codebehind in the solution. Any way to do that? I added a c# class, but will I be able to reference it? so, If I want to bind SPO List data to a asp.net gridview, where/how should I do that?

enter image description here enter image description here

enter image description here

Était-ce utile?

La solution

Sharepoint hosted application means you need to access sharepoint using the client model, so be ready to use jQuery a lot. In this type of application you need to create all your logics on client as the app gets installed within sharepoint 365 and its very picky with what you install there, after all, it a microsoft server, so it's sandboxed to the fullest.

However, if you want to have a more traditional approach, try with autohosted, there you have codebehind, aspx, classes... The whole nine yards. Bear in mind, with autohosted you will have to deal a lot with cross scripting and you will need your own hosting (provider hosted) or an azure account to deploy as all the code is deployed to your hosting and just reference to the application is installed on 365.

Check

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top