0

Environment: 2013, VS2012

I'm trying to develop a custom ribbon button for a document library that creates a folder (ie: a new project) and populates it with a hierarchy of sub-folders. I have some basic c# code that makes the directory structure on the file system and can then dump it into the library, but am unsure of how to call it using the jscript that seems to be the standard for these custom actions. For example, this article describes how to get the button, but I don't know how to bridge that with my c# app. I'm not a javascript developer by any stretch of the imagination, but I can follow instructions pretty well if anyone can point me to an article or can describe the process here.

Of course, alternatives are acceptable. I've seen people saying you can't execute server-side code from a ribbon button, so if there's a different way of creating the folder structure, I'm all ears (figuratively).

1 Answer 1

0

I haven't used SP2013 or VS2012 yet, but if I were trying to do something in SharePoint that I would normally do with C# and the server object model (server side code), and had to use Javascript, I'd look for ways to do it using the client object model.

JavaScript API reference for SharePoint 2013

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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