SharePoint Check whether a website exists in a site collection The easiest way I found is // Checks whether a website exists by looking up its url in the current site collection bool WebExistsByUrl(string url) { return SPContext.Current.Site.AllWebs.Any(w => w.Url.Equals(url, System.StringComparison.InvariantCultureIgnoreCase)); } or even better you can put them in an extension
SharePoint How to recreate web application in SharePoint by Powershell Some times you might need to recreate a web application (probably on you development box) to do a complete deployment and don't want to go through all the those options in Central Administration. here is the PowerShell code. Just put your specific values save it into a .ps1
SharePoint What's new in Business Connectivity Services in SharePoint 2013 Business Connectivity Service (previously Business Data Catalogue / BDC) was one of the most exciting features in Microsoft SharePoint Server since its first release. Although it had a lot of short comings in its first version, but the idea behind it made it an important tool in the package. In SharePoint
SharePoint How to view / change web site properties in SharePoint by PowerShell In SharePoint, Property bags are usually used to store values / configurations related to a web site. Reading / Writing them via PowerShell is really easy just fire up "SharePoint 2010 Management Shell" from the Start Menu and type the following commands: $web = Get-SPWeb "http://yourwebsite" $web.Properties[
SharePoint How to change OSearch14 account (user)? How to change search service account using SharePoint Central Administration The simplest way to change the account of a service in SharePoint is to: 1. Run Central Administrator 2. Go to Security > Configure service accounts 3. Select "Windows Service - SharePoint Server Search" 4. In "Select
Windows Communication Foundation (WCF) MEX vs WSDL Since I have answered this question a few times now I decided to write a post about it. maybe it helps some others who have the same question: "What is the difference between MEX and WSDL as a meta-data description for WCF service" and probably the next question: