Friday, March 25, 2011

Custom 404 Page not found error page - SharePoint

SharePoint is a content management system, so people creates thousands of pages and at the same time deletes hundreds or thousands of pages, if you hit one of page in deleted pages then you will get page not found error (blue and white screen page), but the problem is the error page is not user friendly, you will not find any redirection link, so how will you solve this problem?Usually, we apply 404 page at IIS virtual directory level, but how will you apply same for SharePoint website?In SharePoint when we create web application using SharePoint...

Thursday, February 24, 2011

Custom error message in SharePoint 2010 + Feature Receiver

In SharePoint 2007 there was no way to redirect to custom error page when you use event receivers, if you try also it redirects to default out of the box blue-white error page But in SharePoint 2010 there are some properties by using this you can redirect to custom error page public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); string tite = properties.AfterProperties[“title”].ToString(); if(tite.Contains(“RSM”)) { properties.Cancel = true; properties.Status = SPEventRecieverStatus.CancelWithRedirectUrl; Properties.RedirectUrl...

Tuesday, February 15, 2011

Language pack probem Spanish(United States)

Today, we started developing new locale for our existing site that is Hispanic locale for United States, but the main problem which we found is Microsoft does not provide language pack for Hispanic (United States) the solution for this we have chosen (Spanish) Mexico language pack (es-MX)under regional settings of site collection settings of site because the Spanish (Mexico) and Spanish (United States) are almost sameBut, before start developing new locale with above approach the resource files should be in the form of .es-MX.resx not .es-US.resx...

Tuesday, February 1, 2011

Planning Content Type Hubs in SP2010

when you are developing enterprise application for large organization some fields are common across all brands such as brand name, brand logo, SEO title, SEO description etc..How will you handle this common fields across farms?Scenario (P&G only for reference)Assume that we are designing architecture for P&G products, normally P&G has lot of products (Pantene, Olay, pampers etc...)but, all these products have some common fields such as Product logo, product name, SEO title, SEO description etc... How will you handle this?SharePoint...

Tuesday, January 18, 2011

Moving data from one site collection to other and make it up

In SharePoint, we need to concentrate on lot of things while moving site from one environment to another environment and make it upBased on my experience, I am sharing some of the details with you guysIf you are using VSIDE to develop your site for example creating custom web parts, master pages, css files, features etc...and then developed using VSIDE Then WSP package is best solution but this will solve only half portion of your requirement that means you are deploying static content means the data which will not change frequentlyBut, you need...