ĐÀO TẠO DOANH NGHIỆP : SỞ KHOA HỌC CÔNG NGHỆ TỈNH ĐỒNG NAI

ENTERPRISE TRAINING: DONG NAI DEPARTMENT OF SCIENCE AND TECHNOLOGY.

123

Sunday, October 30, 2016

PowerShell script for adding multiple WSP solutions

$names = get-childitem C:\WSPforeach ($solution in $names) {Add-SPSolution -LiteralPath ("C:\WSP\" + $solution.Name)...

Wednesday, October 5, 2016

Create, Update, Delete a List Item Using COM

Using C# console Add reference to dll: Microsoft.SharePoint, Microsoft.SharePoint.Client, Microsoft.SharePoint.Client.Runtime For Create action: using Microsoft.SharePoint;using Microsoft.SharePoint.Client;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace BasicOperationUsingCSOM{    class Program    {        static void Main(string[] args)        {           ...

Monday, September 26, 2016

Using PowerShell to find site/subsite/list/library size in SharePoint

Size of Site collection and all subsites #Get Size of all Sub-sites in a Site Collection [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") # Function to calculate folder size Function CalculateFolderSize($Folder) {     [long]$FolderSize = 0       foreach ($File in $Folder.Files)     {    #Get File Size         $FolderSize += $file.TotalLength;       #Get the Versions Size        ...

Tuesday, March 8, 2016

SharePoint 2010 get list items using list.asmx service using Jquery

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>    <script src="/Style%20Library/DownloadDocuments/jquery.SPServices-2014.02.min.js" type="text/javascript"></script>    <script type="text/javascript">        function popupCenter(title, w, h, url) {            var url = "/SitePages/Download.aspx?ID=" + url;           ...