Solved

How to code SharePoint 2013 online

Posted on 2016-10-20
4
91 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
InfoPath Business days 1 71
Updating a SharePoint list from an Excel spreadsheet 7 49
Sharepoint 2010 2 27
Is sending authentication through SOAP secure? 3 32
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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 …

740 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