title: Calling a C# function by a HTML button
body: <p>What I’m trying to do is to call function by a button.</p>
  
  <p>i'll leave you with a simple code <strong>that doesn't work!</strong>:</p>
  
  <pre><code>@{
      protected void print()
      { 
          @&lt;p&gt;WELCOME!&lt;/p&gt;
      }
  }
  
  
  &lt;form&gt;
      &lt;button  onclick="print" value="CLICK ME"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>any idea on how to accomplish what im trying to do in the code above?</p>
  
  <p><strong>NOTE: IM NOT USING MVC</strong></p>