Delete or Restore SharePoint Recycle Bin Items based on Deleted Date using PowerShell

Requirement is to Restore all the Items deleted before last week from Recycle bin, which were already deleted from End-User Recycle bin (1st Stage Recycle bin).

Read more

Display Lists from Other Site Collection/Web Application Using jQuery

Another frequent requirement is to display Lists/Libraries from Root site to Sub-site or Sub-site to Root site, and in some cases from Cross-Site collection. While this can be fulfilled by Web Services, Custom Web Parts, etc, here is the simple jQuery method to display SharePoint list from another site collection or a…

Read more

Maintenance Page for SharePoint – Quick way to Implement

Here is the quick way to implement Maintenance page in SharePoint, during scheduled down times/upgrade/service pack patching: Create a new app_offline.htm file in IIS Root folder of your SharePoint site. Place some descriptive text/images to the file, Make sure the file size is at least 512 bytes (otherwise, you will get 404…

Read more

How to Create – Update – Delete SharePoint Views Programmatically?

Often in development we may have to deal with SharePoint Views programmatically. Here I’m sharing the code snippets from my recent project to handle views programmatically. Creating a New View Programmatically: Add/Remove fields to an existing View Programmatically: Get the Fields from View Programmatically: Delete Existing View Programmatically: PowerShell Script to Create…

Read more

How to Implement Custom Error Page Redirect in SharePoint Event Receivers

In my last post Allow only Certain File Types to be Uploaded in SharePoint Document Library using Event Receiver I developed an Event receiver to prevent files other than PDF from being uploaded to a document library. So when a user tries to upload a file other than PDF they’ll get an…

Read more

Restrict File Types in SharePoint Document Library Upload using Event Receiver

Requirement: In a Project collaboration SharePoint site, had a requirement to allow users to upload only PDF files to a Document Library and prevent all other files from being uploaded. Solution: Our requirement is basically to prevent files from being uploaded other than PDF, isn’t it? So let’s jump to visual studio…

Read more

SharePoint 2013 Preview Officially Launched!

SharePoint 2013 preview officially launched with great features. Here are some useful URL’s to get started: SharePoint 2013 Home: http://technet.microsoft.com/en-us/sharepoint/fp142366 Download SharePoint 2013 Preview: http://technet.microsoft.com/en-us/evalcenter/hh973397 SharePoint 2013 system requirements: http://technet.microsoft.com/en-us/library/cc262485%28office.15%29.aspx  SharePoint 2013 IT PRO Training: http://technet.microsoft.com/en-US/sharepoint/fp123606 http://technet.microsoft.com/en-us/sharepoint/fp142374  SharePoint 2013 Preview discontinued features: http://officepreview.microsoft.com/en-us/sharepoint-server-help/discontinued-features-and-modified-functionality-in-microsoft-sharepoint-2013-preview-HA102892827.aspx SharePoint Designer 2013: http://www.microsoft.com/en-us/download/details.aspx?id=30346 SharePoint Foundation 2013 Download: http://www.microsoft.com/en-us/download/details.aspx?id=30345

Read more

Customize Top Navigation Programmatically in SharePoint

Requirement: Had to customize the Top navigation with bunch of provided internal/external links as part of a branding project. Solution: Designed a feature to programmatically add links to top navigation bar. when activated, feature will add bunch of links to the top navigation bar. Customize navigation programmatically in SharePoint: In another SharePoint…

Read more

SharePoint List Column Limits

There are limits in the number of columns we can create in a SharePoint list. You may Get “Column Limit Exceeded” when You add a new column to a SharePoint List. This is because of the column limitations. Column limits in SharePoint 2003/2007 List: With Windows SharePoint Services, you can create the…

Read more