SharePoint 2010 dialogs are JavaScript pop-up dialogs consisting of an iframe to request the other pages in the SharePoint. These pages can be publishing pages or application pages.When you call a pop-up dialog in SharePoint 2010, the content is displayed by using the system master page. The dialog functionality in SharePoint exposed by SP.UI.Dialog and SP.UI.ModalDialog classes.The dialog code...
Activating and Deactivating Feature programmatically in SharePoint
Sometimes, You may need to activate/deactivate Feature programmatically in SharePoint. Feature should have the scope of the web, site or web application or Farm.You can get the Feature by accessing Feature properties of Site or web. Write the following code to retrieve the activated features available in Web application/Site/Web level. var webApplicationFeatures = webapplication.Features var...
Using Property bag in SharePoint 2010
What is Property bag? Property bag is basically a hash table of key-value pair options. Property bag feature is available in Windows SharePoint services 3.0. It allows you to add properties to objects in SharePoint site. Property bag helps you to store meta data as key-value pairs example Connection Strings, file paths, server names and other settings in SharePoint application. Advantages of...
Setting up PowerShell ISE in SharePoint
PowerShell ISE is really cool and it is basically like mini Visual Studio IDE. It is an integrated graphical scripting environment that helps with the PowerShell. Using this tool you can build your scripts and debug line by line by putting break points. It is very powerful tool included in the operating system. You have turn this feature on as shown below If you open the ISE first time...
Setting SharePoint Master Page using Power Shell
You can use Master Page under look and feel section in SharePoint site settings for changing the Master Page for your site.
You can also use power shell script to achieve the same
$web = Get-SPWeb
$web.CustomMasterUrl = "/_catalogs/masterpage/v15.master"
$web.MasterUrl = "/_catalogs/masterpage/V15.master"
$web.Update()
SharePoint Social Data using Java Script
This post shows the code to call the default like button functionality in SharePoint 2010 and also shows you how to show the number of likes for given URL using Jquery and SPServices. Call the below javascript function in sharepoint socialdata.js file for liking an item. Below code can be used on an image click to replicate the SharePoint 2010 like 1: function AddCompanyQuickTag(URL, T) 2: { 3:...
Deploying SharePoint Application to Windows Azure
Windows Azure services infrastructure allows you to deploy all kinds of different roles, You can build great applications with SharePoint but they may not be ready for platform-as-service . The great part of windows Azure is ability to deploy the applications as software as service without writing any code. This post outlines the steps to deploy the SharePoint application to windows...
Using JavaScript Object Model in SharePoint
Developing client applications with SharePoint client side object model (CSOM) is an attractive option when SharePoint solutions are hosted in cloud environment where access to the root folder is not permitted. SharePoint exposes three object models using Managed code using Silverlight using JavaScript Each of these object models provides an interface for the functionality exposed in Microsoft...
Creating a custom sequential workflow in SharePoint 2010
SharePoint supports state machine and sequential workflows. In Sequential Workflow the activities are placed in logical order with a start and an end. Sequential workflows can be used in automated processes where a manual interaction like moving documents to library. In SharePoint, Workflows can be associated with libraries, lists and sites. Site workflows are introduced in SharePoint 2010 and...
Integrating JQuery into SharePoint
Integrating JQuery into SharePoint involves putting JQuery library in where it can be accessed from SharePoint Environment. This post discusses about different options available for deploying and loading JQuery library in SharePoint page and then create a webpart using JQuery. Deploying JQuery to SharePoint To manage the JQuery library files in central location , adding them to the layouts...