0

I am trying to create a Sharepoint Add-In which calls a C# method when the Add-In page loads. I have tried calling the C# method from javascript, but that does not seem to work. Any help would be greatly appreciated.

0

As Trevor's suggestion, if want to use C# code in SharePoint Add-in, it's necessary to use Provider Hosted Add-in Type rather than SharePoint hosted Add-in (which is build with total client side code, html/javascript), for creating Provider Hosted Add-in, please refer the following demo:

Provider Hosted App in SharePoint Online using Visual Studio 2017 + Deploy Provider Hosted Add-in to Microsoft Azure

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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