Posts

webparts in sharepoint

1. Content Editor Webpart: This webpart will be used for authoring rich content.This will be available in Media and Content section. 2. Media Webpart : This webpart is a best pick to host media elemnts like video or Images. Once you add Media webpart to page and enter edit mode of webpart, you can see options to add a video or images. 3. Page Viewer Webpart: If you have a webpage wither internal/external as a part of the web part page, Page Viewer webpart is a best pick for it. 4. Silverlight Webpart:   Silverlight means rich and powerful applications. Now you can intigrate it at a webpart level using Silverlight webpart. Once you deployed the silverlight application (.xap) to site, just add this webpart to page and specify the silverlight application url in the dialog. 5. Business Data Webparts : I have a external content type and there are few actions defined on it using which i can read, write data on to external system. For example i have created a BSC Entity with...

Programmatically Add Content By Query WebPart to Page

using ( SPLimitedWebPartManager webPartManager = SPContext . Current . Web . GetLimitedWebPartManager ( "SitePages/CRISP/Home.aspx" , System . Web . UI . WebControls . WebParts . PersonalizationScope . Shared )) {         ContentByQueryWebPart cqwp = new ContentByQueryWebPart ();         cqwp . ContentTypeBeginsWithId = "0x0101006F0A470EEB1140E7AA14F4CE8A50B54C0001CB1477F4DD432AA86DD56CC3887AF40902" ;         cqwp . WebUrl = web . ServerRelativeUrl ;         cqwp . MainXslLink = "/Style Library/XSL Style Sheets/ContentQueryMain.xsl" ;         cqwp . Title = "Recently Published" ;         webPartManager . AddWebPart ( cqwp , "Top" , 1 );         webPartManager . Web . Dispose (); }

Run timer job on a single content database in sharepoint

public override void Execute ( Guid contentDbId ) {     SPSite siteCollection = new SPSite ( mySiteCollectionUrl );     if ( siteCollection . ContentDatabase . Id . Equals ( contentDbId ))     {         // timer job code     } } or SPJobLockType.ContentDatabase

OOTB Workflows in sharepoint

#1: Approval #2: Collect Feedback #3: Collect Signatures #4: Publishing Approval #5: Three-State

SharePoint 2013 Branding Features

1. Design Packages 2. Device Channels 3. Image Renditions 4. Display Templates

The Context has expired and can no longer be used. (Exception from HRESULT: 0x80090317) in SharePoint 2013

After some analysis, found the root cause as the Time zone as suspected.    The fix for this would be, 1. Go to Central Administration. 2. Manage Web Application. 3. Select the Web application. 4. Go the General Settings. 

what is Event Cache table in sharepoint

Every Content database in SharePoint Contains an EventCache table that is the change log for objects contained in the database. Each row in this table is depicting a change in an object where columns usually contain information such as the date and time of a change, the type of object that was changed, the nature of the change, and a unique identifier for the object. EventCache table is important because it stores the list of site events for which users might have requested alerts.