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...