Solved

How to code SharePoint 2013 online

Posted on 2016-10-20
4
79 Views
Last Modified: 2016-10-24
I have been reading all over the internet trying to find out how to code SharePoint 2013 online.  I wanted to be able to make Visual Web Parts but after going down that road, I now read that Microsoft shut off Sandboxed Solutions ?  Can anyone give me a clear explanation of how to code C# in SharePoint 2013 online ?

With C# I can do anything, connect to azure databases, sharepoint lists, take over the DOM and make my own pages etc etc etc.  Is there still a way to do all the things I could do with C#.  If  C# is indeed no longer allowed, what do you use ?
0
Comment
Question by:Demosthenes
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 41852181
So, you will never write and deploy compiled C# code to SharePoint Online. Ever!

SharePoint Online is a massive solution where many customers are sharing SharePoint tenants on the same virtual servers as other customers. Full trust or even sandboxed code would jeopordize the stability of that.

So, our custom solutions will always be written in client side code (e.g. javascript) or perhaps compiled code on our own or an Azure server.

The App Model is the first attempt at this (I don't particularly like or recommend it, but that's another story).

Much more promising is the new SharePoint Framework, where webparts can be written as client side code. Very slick, very clever.

Get familiar with the Office Patterns and Practices site. Many working code samples, and showing exactly how it should be done.

http://dev.office.com/pnp
1
 

Author Comment

by:Demosthenes
ID: 41852282
So, you will never write and deploy compiled C# code to SharePoint Online. Ever!

Wow.  Ok, finally a clear answer !  Thank you much.
1
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 41852295
To be fair I mostly work with SharePoint on-premises, but even there I avoid deploying code to SharePoint itself whenever possible. (As soon as I saw what Microsoft were aiming at with SharePoint 2013 and the App Model I saw where future investment from MS was going to go)

I write solutions in C# and even powershell. These tend to use the Client Object Model to call into SharePoint to retrieve or manipulate data. They're deployed to other servers in my org, and often use least privileged service accounts to operate. (Quite often batch processing due to nature of the business).

I also write javascript that I deploy to SharePoint (store in libraries and on pages). This javascript often also uses the Client Object Model to retrieve or manipulate data.

Beyond this I also use K2 Blackpearl, which gives me powerful electronic form and workflow capabilities I couldn't get from native SharePoint. (Deployed to a K2 server, once again not touching the SharePoint servers themselves).

I partially documented my ethos in this blog post in 2013; http://the-north.com/sharepoint/post/Alternatives-to-SharePoint-Timer-Jobs
0
 
LVL 17

Expert Comment

by:Walter Curtis
ID: 41856950
Great info Jamie, thanks...
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing a TempVar to a Combo box form 3 107
SharePoint sub-site searching and results. 8 38
SharePoint List Calculated Field 4 41
IT Desktop Support 11 90
This collection of functions covers all the normal rounding methods of just about any numeric value.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question