Copied to clipboard

Flag this post as spam?

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


  • Tom 605 posts 739 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??

  • Rajeev153 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
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0-RC