title: Calling javascript from page behind on page load event
body: <p>I am trying to call the JavaScript "DisableAllPopUpTxt()" from the page behind with following code:</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(GetType(), "Javascript", "javascript:DisableAllPopUpTxt();", true);
  </code></pre>
  
  <p>But it is giving me following error:</p>
  
  <p><strong>No overload of method RegisterStartupScript takes 4 aurguments</strong>
  Please tell me where I'm wrong.</p>
  
  <p>Actually my <strong>MasterPage</strong> has one modal dialog registration form which has client side validations.
  Because of validations I'm not able to do any post back.</p>
  
  <p>So I'm trying to disable all text boxes using the JS function <strong>"DisableAllPopUpTxt()"</strong> on page load.</p>
  
  <pre><code>function DisableAllPopUpTxt() {
  
      document.getElementById("txtCustEmailID").disabled = true;
      document.getElementById("txtCustPwd").disabled = true;
      document.getElementById("txtCustFName").disabled = true;
      document.getElementById("txtCustLName").disabled = true;
      document.getElementById("txtCustREmail").disabled = true;
      document.getElementById("txtCustRPwd").disabled = true;
      document.getElementById("txtCustRePwd").disabled = true;
      document.getElementById("txtCustPh").disabled = true;
  }
  </code></pre>
  
  <p>But I'm not able to call it on page load.</p>
  
  <p>How to solve this problem?</p>