Imagine being paid to improve your favorite CMS!

It could be you! Umbraco HQ are hiring and are looking for both talents and senior developers. Wonderful workplace, friendly colleagues and competitive salary.

Copied to clipboard

Flag this post as spam?

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


  • Tom 674 posts 870 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

     

     

Please Sign in or register to post replies

Write your reply to:

Draft