Skip to content

Instantly share code, notes, and snippets.

@umbraesoulsbane
umbraesoulsbane / eventHandler-stub.cfc
Created September 12, 2014 17:45
FlipBook Auto-Creation
<cffunction name="onAfterFolderFlipBookSave" output="true">
<cfargument name="event">
<cfargument name="$">
<!--- // Object being Saved // --->
<cfset thisBean = arguments.$.event('activeBean') />
<!--- // Construct Paths and FileName // --->
<cfset fbCache = "#$.globalConfig('assetpath')#/#$.siteConfig('siteid')#/cache/file" />
<cfset fbPDF = "#fbCache#/#thisBean.getValue('FILEID')#.pdf" />
<cfset fbTemp = "#$.globalConfig('assetdir')#/#$.siteConfig('siteid')#/cache/temp" />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.WebControls;
using System.Web.UI;
using Microsoft.SharePoint;
namespace QuickLinks
@umbraesoulsbane
umbraesoulsbane / accreqER.cs
Created July 6, 2012 16:18
AccessRequest Event Reciever
using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Administration;
namespace AccessRequest.Features.AccessRequestFeature
{
[Guid("c7482d83-8a04-4aa0-95e6-bf629805ecb1")]
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Import Namespace="System" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="Microsoft.SharePoint.Administration" %>
<%@ Import Namespace="System.Collections.Specialized" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>