Users Pricing

forum

home / developersection / forums / in razor view, how to check model property is null?

In Razor view, how to check model property is null?

Simond Gear 1808 10 Jul 2017

In Razor view, how to check model property is null?

       @if
(Model.ImageName != null)
            {
            }
            else
            {
            }

 I am writing this code but it is not working.  Please help me.


Simond Gear

Other


2 Answers