Posts

How to create simple custom SharePoint timer job

Hi, Few things to create a custom timer job. 1. Create a Feature 2. Create a .cs file and inherit SPJobDefinition and write custom code there. The SP Feature Code Behind: You can change the GUID here if it exists already or creates any issue... [ Guid ( "6ecf1f21-11fa-4109-baf7-0099347b5031" )]     public class Entropic_Top_Blog_PostsEventReceiver : SPFeatureReceiver     {         // Uncomment the method below to handle the event raised after a feature has been activated.           public override void FeatureActivated( SPFeatureReceiverProperties properties)         {             SPWebApplication webApp = properties.Feature.Parent as SPWebApplication ;               // make sure the job isn't already ...

Top Software Houses in Pakistan 2014

Image
Which one is the best Software Company in Pakistan? NetSol Technologies Ovex Technologies TRG Tech System Pvt Ltd Elixir Tech Ibds Tera Data Enterprise DB (Fusion Itech.) Kalsoft Si3 System Innovations Mentor Graphics Xavor Corporation CureMD Datum Square Macrosoft Pakistan i2c Inc Techlogix Mindstorm Studios Gameview Studios   

Get user profile properties in SharePoint with Javascript/Jquery object model

Hello, This post will show you, how you can a ccess theuser profile information in SharePoint with javascript using client object model. Thanks to  Alexander for writing this post  as it was much helpful. Insert this code in a CEWP 1 <script type= "text/javascript" src= "https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" ></script> 2 <script type= "text/javascript"   src= "/test/EMSKJS/spjs-utility.js" ></script> 3 <script type= "text/javascript" > 4   5 var   userInfoObj = getUserInfo_v2(_spUserId); 6 var   name = userInfoObj.Title; 7 var   email = userInfoObj.EMail; 8 </script> I have incorporated the new The parameter “_spUserId” is provided by SharePoint and represents the current user’s userID. The function takes one argument which can be a userID or a login name (domainlogin or appname:user). If you use domainuser a...

How to take backup and restore a SharePoint site or subsite (Not Site Collection)

Use this.. Enjoy :) Export - spweb – identity http : //sp2010:8083/abc -path c:\sitebkup\mysite.bak Import - SPWeb – identity http : //sp2010:8083/ict -path c:\sitebkup\mysite.bak

Confluence SharePoint Connector Error

Hello! While wrestling with Confluence and SharePoint i got following error in my ULS logs. I Google it and found that the machine key is not same across all of my servers in the farm. I move ahead and checked it manually and found the machine key is identical across all the servers. After contacting Atlassian support i found that i need to remove some configuration from my database. They provided a workaround and it worked like a magic for me. Error: Unable to decrypt persisted value (SPCONTEXT: Current User: XXXXXXXX\XXXXXXXX, Current Web Application: SharePoint - XXXXXXXX.XXXXXXXX.com80, Current URL: http://XXXXXXXX.XXXXXXXX.com/_layouts/Atlassian/ConfluenceSettings.aspx, User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC EA 2)): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --...

SharePoint 2010 PowerShell Script to restart a Search query component

Following is the code. $SearchApp = Get-SPEnterpriseSearchServiceApplication -identity "Search Service Application" $SearchApp | Get-SPEnterpriseSearchQueryTopology | Get-SPEnterpriseSearchQueryComponent | Where-Object {$_.ServerName -eq 'NT-IRVA-1446'} | Restart-SPEnterpriseSearchQueryComponent

How to copy data from one table to another in SQL Server 2008

How to copy data from one table to another in SQL Server 2008 insert into MultiMedia.dbo.MovieSongs(Col1,Col2,Col3) select Col1,Col2,Col3 colums from MultiMedia_Temp.dbo.MovieSongs