Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pinal Bhatt 298 posts 390 karma points
    Feb 11, 2013 @ 17:51
    Pinal Bhatt
    0

    IContent.GetValue<int>(fieldName) throws error when numeric field is empty

    Hi 

    In  Umbraco 6.0  IContent.GetValue<int>(fieldName) throws error when numeric field is empty. 

    I dont know if its know issue are an bug has already been filed for this.

    Thanks & Regards

    Pinal Bhatt

     

  • Keith Jackson 183 posts 552 karma points
    Feb 13, 2013 @ 12:32
    Keith Jackson
    0

    Pinal - Have you tried using IContent.GetValue<Int?> instead?

    Using <int> will always give an error if it's not empty due to casting issues.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies