Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 952 karma points
    Jul 19, 2011 @ 02:28
    Tom
    0

    Proper Check for property?

    Hi All,

    if I have a media picker what would be the proper check for to see if it is populated.. i.e @if(Model.myImage != DynamicNull)???

     

    This is what is really throwing me learning razor.. knowing what to appropriately check for??

  • Rajeev 126 posts 154 karma points
    Jul 19, 2011 @ 03:50
    Rajeev
    1

    Tom, could you please try the following

    if(!Model.myImage.ToString().equals(""))

    Thanks,

    Rajeev

     

     

  • 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