https://camerondwyer.wordpress.com/2013/05/22/how-to-install-a-dll-to-the-gac-on-windows-2012-using-only-powershell-without-having-to-install-sdk-or-visual-studio/
Author: Admin
To debug a Sharepoint timer job
Deploy the timerjob.
Open Services and restart the Sharepoint Timer Service.
In Visual Studio, attach to OWSTimer.exe
Set break point and debug as usual
Change email to HTML
In Outlook, to change the formatting of email, in the ribbon go to “Format Text”, under “Format” click either “HTML”, “Plain Text” or “Rich Text”
Generate connection string
Extend a Sharepoint web app to another port
You can extend existing Sharepoint web application to another application on another port. A new IIS site will be created for the new web application.
Go to Central Admin, select manage web applications, select the web app you want to extend and click “Extend” on the ribbon.
Error Occurred in Deployment step ‘Recycle IIS Application Pool’
When a page cannot be edited in edit mode
add “?controlmode=edit” to the URL to resolve
How to find culture and publickeytoken of dll deployed on GAC
https://camerondwyer.wordpress.com/2013/11/01/how-to-find-the-version-culture-and-publickeytoken-of-an-assemby-dll-using-powershell/
Or use the SN tool in VS Developer command prompt.
If the assembly has been deployed to GAC, navigate to the folder containing the assembly and follow the article above, using reflection to load the assembly.
Check if it’s edit mode in javascript in Sharepoint
var wikiInEditMode = document.forms[MSOWebPartPageFormName]._wikiPageMode.value;
if (wikiInEditMode == “Edit”)
{
// wiki page is in edit mode
}
else
{
// wiki page is not in edit mode
}
if (wikiInEditMode == “Edit”)
{
// wiki page is in edit mode
}
else
{
// wiki page is not in edit mode
}
Another solution http://sharepoint.stackexchange.com/questions/12792/how-do-i-know-if-the-page-is-in-edit-mode-from-javascript
var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value;
if (inDesignMode == "1")
{
// page is in edit mode
}
else
{
// page is in browse mode
}
Get the domain name with port number in javascript
var arr = window.location.href.split(“/”);
var url = arr[0] + “//
var url = arr[0] + “//