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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...