SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){ //your code goes here... });
Category: Uncategorized
Ways to debug ASP.NET and Sharepoint webparts
Or, From “Debug”, select “Attach to process…” and attach the debugger to the w3wp.exe processes and start debugging. Make sure to open the browser and browse the site first to start the processes before attaching.
How to expand VMWare virtual hard drive storage
e.g: to expand the virtual hard drive from 80GB to 100GB, you need 100GB free space in the hard drive story the VD, not 20GB, but 100GB.
This is because VMWare will create a new file with the size of 100GB and copy the content from the 80GB VD over, then delete the 80GB VD
Add parameters to workflow programmatically
Test emails with SharePoint
https://papercut.codeplex.com/
follow the article https://prasadpathak.wordpress.com/2014/10/31/sharepoint-using-papercut-for-testing-the-email-functionality-in-sharepoint/
Make sure the local SMTP server is created and configured and started from IIS 6.0
Disable the Simple Mail Server … service in Services
Set papercut to listen on port 25 local server
Clear SQL Log
USE [DBName]
GO
ALTER DATABASE [DBName] SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(DBName_log, 1)
ALTER DATABASE [DBName] SET RECOVERY FULL WITH NO_WAIT
GO
Start a SharePoint workflow programmatically
https://jainnitin2411.wordpress.com/2012/07/06/programmaticallystartsharepointworkflow/