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

Please Sign in or register to post replies

Write your reply to:

Draft