As part of an internship assignment, I'm working with SharePoint 2013. I'm completely new to SharePoint in general.
Part of this assignment is a labeling system. The idea is that users can add labels to specific documents. There's two types of labels we want: Global and Personal.
I've asked a somewhat similar question before, you can see it here: Filling an SP column with SQL data I managed to set up a BDC connection to an SQL server containing some labels, in Visual Studio. However, I'm having trouble filling a custom Document Library with this data.
What I'd like to have is a Document Library that lets me execute C# code when the page loads, so I can fill certain columns with BDC data. Beyond that, I would like to write stuff back to the database as well. For example, a user uploads a new document and adds some labels, the C# code collects the documents GUID and the user's login and writes these back to the database along with the assigned labels.
The examples I've tried (to no avail) involved stuff like manually redirecting users to new masterpages, which all seemed needlessly complicated and had a "bad smell" if you will, making me feel like I'm overlooking something... Does anyone know of a simple tutorial how to get something like this done?
Thanks in advance