Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Avoid Item.Fields["Title"].HasValue

Modified: 2009/12/03 16:34 by mark - Categorized as: Sitecore
When you want to check if an Sitecore field has any value you can use the default .HasValue function.

There is one big annoing thing about this value. If the value equals string.empty this function return true. So it's better to use


 © Evident Interactive BV