title: how to check null or empty value in mvc view page
body: <p>I want to check null or empty in view page. i gave code. but it is showing the error. i don't know how to give?</p>
  
  <p><strong>my code is</strong></p>
  
  <pre><code> &lt;% foreach (Models.JobPreferredIndustry jpi in Model.JobPreferredIndustries)
   { %&gt;
      &lt;% if (jpi != null) { %&gt;
          &lt;%:jpi.Industry.Name %&gt;
      &lt;%} %&gt;
  
      &lt;%if (string.IsNullOrEmpty(jpi))
      { %&gt;
                          ----------------
      &lt;%} %&gt;
  &lt;%}%&gt;
  </code></pre>