Sign in As different user SharePoint 2013 on access denied

Sometimes you go crazy when you see “Access denied” page and struggle to append “Closeconnection.aspx?loginasanotheruser=true” in the url
Below is a link which you can add in bookmark and directly append “Closeconnection.aspx?loginasanotheruser=true” with just one click.
AccessDenied : Sign In as Different User

Note: This script is currently developed only for SharePoint 2013.Will shortly upload for all versions of SharePoint

Call a Javascript function after update panel is refreshed

Hi All,

We were facing issue to rebind some of our jQuery plugins after the update panel was refreshed.
Below is the code which saved us.

  var parameter = Sys.WebForms.PageRequestManager.getInstance();

    parameter.add_endRequest(function () {

       //Reinitialize plugin , any other activity which needs to be done at the end of partial postback


Install Node.js without admin rights

Hi Folks, This is a copy paste version of one of the blogs which helped me.Giving due to credit to him.Just wanted a copy of the same with some minor updates.Below is the link for reference
Step 1: Get Node.exe First you will need to download the Windows Binary. You can get it from Node.js download page or For x64, you will have to download from the appropriate folder. Move the executable to a local folder. Step 2: Get NPM NPM (Node Package Manager) is the package manager for Node.js and you will need this for your development. You can download NPM from and extract the zip file to a local folder. Step 3: Copy the extracted files in a folder Copy npm.cmd from extracted folder \npm\bin to the folder where node.exe resides Now move the extracted npm files in a folder named "node_modules\npm" in the same folder where node.exe resides. Such that the…

Creating custom events for a control in HTML

Hi All,

Sometimes we need to create a custom event for a control which we can use it to get the context of the control.Below is a quick method using jQuery to do that.

In the below example i have created an init method for input tag.

This method can be simply trigger using  


 <input id="txtName" class="news" init="initializeSection1" />

    <input id="txtName" class="news" init="initializeSection2" />

        $(document).ready(function () {

            $(".news").bind("init", function (e, data, val) {
                var initializeFunctionName = $(this).attr("init");
                window[initializeFunctionName](e, data, val);



        function initializeSection1(e, data, val) {

            alert("I called initializeSection1…

SharePoint 2016, 2013 , 2010 , 2007 Create list item with existing ID

Hey Guys,
Now i was in a really tricky scenario where a master record had been deleted by someone which was referenced using code in numerous places. Changing the code would be a nightmare. Now the easiest solution which will come to everyones mind is to add the list item with those possible values again. But it would not retain the ID value which was used in the code.Let me give you an example to clarify the problem statement
PROBLEM STATEMENT There is a “status” master list with the following values and the third list item is deleted.
We want the 3rd list item with ID=3 to be restored even when it is deleted from recycle bin as in the code the ID column is used to reference the status.
Status ID Approved 1 Rejected 2 Review 3 In Draft 4
SOLUTION: Now usually the answers would be
Restore it from recycle bin (almost 3 months have passed and it has been deleted from recycle bin as well)Delete the list and recreate the list with fresh entries (Break referential integrity of lists where the column from…

Angular JS Table with Paging , GroupBy and Search

Some of the common syntax which are most often used while working on Angular js