SharePoint Survey List - EventReceiver
Run code when a survey response is finished by handling ItemAdded and ItemUpdated and checking the Completed field.
Articles, code snippets and news worth sharing.
Run code when a survey response is finished by handling ItemAdded and ItemUpdated and checking the Completed field.
Add a custom action to the Actions menu of a SharePoint survey list using a module in an empty SharePoint project.
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Survey Actions Menu Dropdown -->
<CustomAction Id="6D6F6574-57CD-4BDD-88E5-9651A066140E"
RegistrationType="List"
Description="DescriptionGoesHere"Create a list field that appears on the display form but is hidden from the new and edit forms.
string newField = "<Field Type=\"Text\" MaxLength=\"50\" DisplayName=\"NewField\" Name=\"NewField\" ShowInNewForm=\"FALSE\" ShowInEditForm=\"FALSE\" />";
list.Fields.AddFieldAsXml(newField, true, SPAddFieldOptions.Default);Add the missing Sign in as Different User item to the SharePoint 2013 welcome menu by editing Welcome.ascx.
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascxA sandbox solution cannot call Response.Redirect, so write a small script through a literal control instead.
<asp:Literal ID="litRedirect" runat="server" />Upload an attachment to a list item from a sandboxed visual web part by opening the AttachFile.aspx page in a modal dialog.
<script type="text/javascript">
function callback() {
alert('document uploaded');
}
function openPopup() {I received the 2013 Microsoft MVP Award for contributions to the Visual C# technical community.
Escape single and double quotes in a string before an AJAX post, using a simple replace instead of encoding everything.
data.replace(/(['"])/g, "\\$1")Download a file in a Windows Store app with BackgroundDownloader and async/await in C#.
async Task<bool> DownloadFile(Uri source, StorageFile destination)
{
try
{
BackgroundDownloader downloader = new BackgroundDownloader();
DownloadOperation download =Build a document approval workflow in SharePoint Designer 2010 where the approver is picked from a column on the document.
Build an SSIS package that imports from a source view, updating existing records and creating new ones, using Lookup and Conditional Split.
One line of JavaScript that reloads the current page from the server.
document.location.reload(true);