Category Archives: Sharepoint 2010

How to provision a script inside a SharePoint Page?

1) Go to Visual Studio 2010 solution. Click on the Add a new Item. 2) Select the Module from the SharePoint-2010 Items. 3) Open the Elements.xml file. Add a Custom action. <CustomAction Location=”ScriptLink”                    ScriptBlock=”function  CloseCallback(dialogResult, returnValue) { SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK); }”                   … Continue reading

Posted in Sharepoint 2010 | Leave a comment