title: Calling server-side function from HTML on click (Classic ASP)
body: <p>I am trying to use my if else statement inside my <code>Function Save()</code>  but I cannot make it works? After click on the img button I want to verify if <code>mycheckBox_A</code> is checked. By the way <strong>I am using classic ASP</strong></p>
  
  <pre><code>    &lt;img src="blah" onclick="&lt;%Save()%&gt;"/&gt;     
  
      &lt;%
      Function Save()    
        If mycheckBox_A.checked Then    
           'mycheckBox_A is checked    
        Else    
           'mycheckBox_B is checked 
        End If
     End Function
      %&gt;
  </code></pre>