title: How can I set a Button's type to "Button" (as opposed to the default "Submit") in C#?
body: <p>According to an answer <a href="https://stackoverflow.com/questions/3314989/can-i-make-a-button-not-submit-a-form">here</a>, I can prevent a button from submitting the form by setting its type value to "Button", like so in HTML:</p>
  
  <pre><code>&lt;button type="button"&gt;Cancel changes&lt;/button&gt;
  </code></pre>
  
  <p>...but how can I do this in C#? I am creating my controls dynamically, something like this (pseudocode, as I'm away from my IDE):</p>
  
  <pre><code>button btn = new Button 
               {
                 CSS = "bla"
               }
  btn.Type = "Button"; // &lt;- something like this?
  </code></pre>