title: Call javascript function from switch case in asp.net mvc
body: <p>Want make call to javascript function from switch case statment in asp.net mvc:</p>
  
  <pre><code>@select Case imageExistOrNot(this)
     Case True
        @&lt;a onclick="showCardImage(this)"&gt;Show&lt;/a&gt;
     Case False
        @&lt;a&gt;No Image&lt;/a&gt;
  End Select
  </code></pre>
  
  <p>And have test JS method:</p>
  
  <pre><code>function imageExistOrNot()  
  {
      return false;
  }
  </code></pre>