{%Pragmatic Coding%} Tips and tricks for software developers.


SharePoint 2010: Simple Backup/Restore via PowerShell

Hello dear readers!

In this article I will show you the main simple samples of backing up and restoring SharePoint SPFarm and SPSite in Windows PowerShell.

Creates a backup of an individual database, Web application, or the entire farm.

Required params:
Read the full article...


Validation Controls in SharePoint

Recently I had to compare 2 E-mail fields in the form with SharePoint field controls. And this article will describe the usage of SharePoint validation controls.


The Microsoft.SharePoint.WebControls namespace of the Microsoft.SharePoint.dll contains a number of controls such as validation controls that can be used on any application pages to validate user entry in the SharePoint controls.
To use SharePoint control all your classes in project namespace require that a page directive like the following be included in the ASPX page containing the control:

You can obtain the PublicKeyToken value for the current Windows SharePoint Services deployment from the default.aspx file in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\SiteTemplates\STS folder, or from information provided for the Microsoft.SharePoint assembly atLocal_Drive:\%WINDOWS%\assembly in Windows Explorer.
Read the full article...