SharePoint

Reading PDF text using iTextSharp c#

This is not related to SharePoint but i found this tool quite useful and i thought its best that you know about it too. To check out what iTextSharp can do, you can go to

event_note
close

This is not related to SharePoint but i found this tool quite useful and i thought its best that you know about it too. To check out what iTextSharp can do, you can go to

Read more

Posted in Code behind

Multiline Promoted Links

Add this code on the page where you have your Tiles view (Tiles.aspx): http://jquery-1.10.2.min.js //download jquery-1.10.2.min.js from the net

Warning: To not change the view through the webpart (e.g. from Tiles to All Promoted Links),

event_note
close

Add this code on the page where you have your Tiles view (Tiles.aspx): http://jquery-1.10.2.min.js //download jquery-1.10.2.min.js from the net

Warning: To not change the view through the webpart (e.g. from Tiles to All Promoted Links),

Read more

SharePoint

Display Version History Through JavaScript (Document Library – Document)

Your version history is basically an .aspx page with certain parameters passed through Query String to identify for which item you are check the version history for. In case you hide the ribbon and edit

event_note
close

Your version history is basically an .aspx page with certain parameters passed through Query String to identify for which item you are check the version history for. In case you hide the ribbon and edit

Read more

SharePoint

Add Web part programmatically through C#

The code below adds a web part programmatically on to a page

Reference link: https://social.msdn.microsoft.com/Forums/office/en-US/1bc7212c-385d-4a89-9b7e-9d37ee762017/add-webpart-on-sharepoint-page-programmatically?forum=sharepointdevelopmentlegacy

event_note
close

The code below adds a web part programmatically on to a page

Reference link: https://social.msdn.microsoft.com/Forums/office/en-US/1bc7212c-385d-4a89-9b7e-9d37ee762017/add-webpart-on-sharepoint-page-programmatically?forum=sharepointdevelopmentlegacy

Read more

Posted in Code behind
SharePoint

Create a Sub Site programmatically through C# with feature activation

Sometime we require creating a sub site programmatically. The sample code below creates a SharePoint Sub Site.

If you don’t know the GUID of the feature but you do know the name of the

event_note
close

Sometime we require creating a sub site programmatically. The sample code below creates a SharePoint Sub Site.

If you don’t know the GUID of the feature but you do know the name of the

Read more

Posted in Code behind

Display Current User through Javascript

I have used SharePoint’s JavaScript Object Model to retrieve the current user. Once you have executed the load and executeQueryAsync methods and the call to SharePoint was successful, then inside of the onQuerySucceeded method is where

event_note
close

I have used SharePoint’s JavaScript Object Model to retrieve the current user. Once you have executed the load and executeQueryAsync methods and the call to SharePoint was successful, then inside of the onQuerySucceeded method is where

Read more

Send email with images in body of mail- C#

The blog post about send email is not exactly related to SharePoint, but there may come a time where you might need to achieve a task where you would require to do code-behind. I received

event_note
close

The blog post about send email is not exactly related to SharePoint, but there may come a time where you might need to achieve a task where you would require to do code-behind. I received

Read more

Posted in Code behind