Tags » Sharepoint 2010

Get Query String In JavaScript

It’s a very common task to Get Query String in JavaScript. I use this JavaScript function in every other project and every time.

function getParameterByName(name) {
 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
 results = regex.exec(location.search);
 return results == null ?
11 more words

SharePoint 2010

Create copy of list using powershell

Create List template from existing SharePoint list and then create copy of list from the newly created list template.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$webURL = "http://contoso.com/TeamSite"
132 more words

Powershell

Export and Import Sharepoint Site with powershell

Export site from $webURL and import it to $newWebURL URL

Note: Please update $webURL, $newWebURL and $exportFilePath as per your environment.

Add-PSSnapin "Microsoft.Sharepoint.Powershell" -ErrorAction SilentlyContinue… 68 more words

Powershell

Delete Sharepoint list items with powershell

Many a times in Sharepoint, we have a need to archive old items as a list grows in size. After moving items to different place/list we may have to delete old items from main list. 195 more words

Powershell

M.E.C. – Try the Experience!

Happy Friday everyone! It’s the end of a long week and I know some of us are ready to enjoy the weekend. Or at least sleep – you know, there’s a saying, “if sleep were a man, I’d marry him” (or woman, whatever your preference)… let me tell you something; I 100% agree! 388 more words

Office 365

SharePoint 2010 Search button disappeared

Issue Details:

Went to http://theSharePointSite/sites/Search/Pages/default.aspx manually to do a search and got this error:

Sharepoint Internal server error exception: System.NullReferenceException: Object reference not set to an instance of an object. 20 more words

SharePoint 2010

SharePoint 2013 Search - Item Site without Logo Display Template Code

Here’s the code I used to create an item display template for a Site listing but that shows no logo just the name link to the site. 395 more words

SharePoint 2010