
SharePoint Client Object Model (ECMAScript) #2 – Update Web Properties
SharePoint Client Object Model (ECMAScript) provides the capabilities of SharePoint Server Object capabilities at the client side. In this tutorial, let me show you how you can play around with the Client Object Model through IE Developer Toolbar how to update Web properties. Check the screenshot below, to know what we are trying to achieve ...

SharePoint Client Object Model (ECMAScript) #1 – Get Context Object
SharePoint Client Object Model (ECMAScript) provides the capabilities of SharePoint Server Object capabilities at the client side. In this tutorial, let me show you how you can play around with the Client Object Model through IE Developer Toolbar. Check the screenshot below, to know what we are trying to achieve here: Below is the function ...

Best Practices for jQuery Developers
Following are some of the best practices that you could follow while working with jQuery: Plugins: Please avoid unnecessary use of plugins If a plugin is being used, respect the authors work and ensure that the plugin file is reused with the license comments intact If you are writing a reusable functionality in the code, ...

Convert a JSON string into a C# object
There could be scenarios in our project wherein we consume a service which returns back a JSON message. These JSON message is infact a stringified version of an object and are recognized as a simple string format by our server side. Decoding them gets difficult at the first shot. But C# itself has got a ...

Generate JSON string output in C#
This is one of the most widely used and very useful script that you could use in your web services/ WCF services/ Handlers or any place wherein you require a JSON string to be passed to the client/ consumer. We make use of the Serialize method in JavaScriptSerializer class in C# under the following namespace: ...

Dialogs in SharePoint 2010 – Part 1
Most of us SharePoint developers when posed with a question of showing content in a popup, we tend to make use of window.open() and window.showModalDialog(). Many of us forget about the fact that SharePoint 2010 itself has modal dialog to perform this operation. In this part we will see how to setup a modal popup ...

SharePoint Re-Deployment Bat File
A simple bat file that you can use for redeploying your WSPs: Copy the following text in a notepad and Save As 'Deployment.bat' stsadm -o retractsolution -name "ProjectA.Deployment.wsp" -immediate -url "http://localhost:2000/" stsadm -o execadmsvcjobs stsadm -o deletesolution -name "ProjectA.Deployment.wsp" stsadm -o addsolution -filename "D:\ProjectA.Deployment.wsp" stsadm -o deploysolution -name "ProjectA.Deployment.wsp" -immediate -allowgacdeployment -url "http://localhost:2000/" -force stsadm ...

Selecting a complex jQuery selector present in a page
Most of time, the moment we see a complex ID like 'ctl00_m_g_f368f5ab_d679_4436_a6da_938c6bfcd60a_ctl00_SearchCheckBox' we faint... 😉 And what we end up is start finding some parent which has an ID or see if there is a css class defined for this control. Targeting a control using its parent is good and performance-wise effective. However, using a ...