SharePoint

Retrieve items from a particular folder of a list

0There are times when we need to fetch only the items within a specific folder. In those cases we can use the ‘Folder’ property of SPQuery class. Simply set the ‘Folder’ property to a Folder object which represents the folder instance from where we need the items.

  Reference URL: http://spdeveloper.co.in/articles/pages/get-items-from-a-specific-folder-in-sharepoint-list.aspx

SharePoint

Attach and Detach Event Receiver Programmatically C#

0Recently i came up with an issue with an SP 2007 requirement, where I was updating records using a visual web part. But due to an event receiver deployed by another vendor, the records were not getting updated. I tried to disable the event receiver by implementing the code from the link http://www.sharepointnadeem.com/2011/12/disable-event-firing-from-non-event.html But this dint Read more about Attach and Detach Event Receiver Programmatically C#[…]

SharePoint

Get File Content SharePoint using external applications

0This blog post explains on how to get file content from SharePoint using external applications basically other programming languages. Although the below code is in C#, i am sure you will figure out how to do it using any other programming language like JAVA, PHP etc. If your documents are stored in SharePoint and these Read more about Get File Content SharePoint using external applications[…]

SharePoint

Connect to SharePoint On Premise using external applications

0I was having a tough time searching on the internet on how to connect to SharePoint On Premise from an external application. Now as you all know, we need to first authenticate ourselves in SharePoint, after which we can perform GET METHOD REST API CALLS And to perform POST commands, we need a request digest Read more about Connect to SharePoint On Premise using external applications[…]

SharePoint

Get My Checked Out Files from Site Collection using SPSiteDataQuery

0 So i get this task of getting the checked out files of the current user from all the subsites of a site collection. To tackle this, something called as SPSiteDataQuery came in my mind. And i used it. SPSiteDataQuery: Represents a query that can be performed across multiple lists in multiple Web sites in the Read more about Get My Checked Out Files from Site Collection using SPSiteDataQuery[…]

SharePoint

Pagination using SPQuery C#

0There is something you really need to know, YOU CAN DO PAGINATION USING SPQUERY!!!!!!!! Yes, below is the code i have implemented

  Reference URLs: http://blogs.msdn.com/b/colbyafrica/archive/2009/02/19/learning-sharepoint-part-vi-list-pagination.aspx https://code.msdn.microsoft.com/office/CSSharePointPaginationWebPa-b44c8073/sourcecode?fileId=61645&pathId=1225843244 http://www.tekritisoftware.com/implement-paging-using-caml-query-sharepoint2010  

SharePoint

Dynamic CAML Query using C#

0So i had a requirement where i had to create a CAML query dynamically based on user inputs, after googling, i found some solutions, but this helped be Reference url: https://shahjinesh11.wordpress.com/2013/12/26/how-to-create-caml-query-dynamically-in-sharepoint/

Now, you can prepare your query and call the function as per below to create dynamic query:

 

SharePoint

Custom TextBox Server Control with Regular Expression Validator

0In my recent projects, there was a flaw in our code, script injections were being made possible through Text Box. There was a client requirement that tags if present in the Text Box, it should not allow to save the data. For this regex was the savior, but i had a lot of text boxes Read more about Custom TextBox Server Control with Regular Expression Validator[…]

SharePoint

Remove HTML Tags from ASP Controls in a Visual Webpart

0 Lets say for example you have a text box with which you store certain text in a SharePoint List and while displaying the data to users, you make use of a label. Now i add a script alert(“Hello”) in the text box and save it, the script will get saved The same I view Read more about Remove HTML Tags from ASP Controls in a Visual Webpart[…]