Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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??
Tom, could you please try the following
if(!Model.myImage.ToString().equals(""))
Thanks,
Rajeev
is working on a reply...
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.
Continue discussion
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??
Tom, could you please try the following
if(!Model.myImage.ToString().equals(""))
Thanks,
Rajeev
is working on a reply...
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.