x First time here? Check out the FAQ
Join us a the Umbraco event of the year - get your Codegarden 14 early bird ticket today
  • Avatar548posts660karma

    Proper Check for property?

    Tom started this topic July 19, 2011 @ 02:28, Go directly to the topic solution

    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 posted this reply July 19, 2011 @ 03:50

    Tom, could you please try the following

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

    Thanks,

    Rajeev

     

     


Please login or Sign up To post replies