title: How to disable a button on page load?
body: <p>OMG sorry guys...I realized what a simple fool question I had asked....</p>
  
  <p>Just using</p>
  
  <pre><code>btnSub.disabled = true 
  </code></pre>
  
  <p>on the server side then everything is good to go....</p>
  
  <p>I need to refresh my brain now....</p>
  
  <p>Again, thanks for all the answers!</p>
  
  <hr>
  
  <p>I am working on a asp.net project, on one page I have a submit button like below:</p>
  
  <pre><code>&lt;input id ="btnSub" value="Submit" type="Submit" runat ="server" onclick="return isFormValid(this.form)" disabled="disabled"/&gt;
  </code></pre>
  
  <p>What I tried to do is when the page is on load</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
      }
  </code></pre>
  
  <p>Check some conditions, if the final result is false, then disable the submit button otherwise enable it. </p>
  
  <p>I did google it but the most I have found were using jquery to disable a an asp.net button.</p>
  
  <p>Any hint?</p>