title: To pass parameter from server side to client side
body: <p>In the below code I have a dropdown in this I call js function from server side and I want to pass parameter to js function. In my case parameter is not passing. Please help me to solve this issue.</p>
  
  <p>codebehind:</p>
  
  <pre><code> Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "&lt;script type=text/javascript&gt; AddItem(" + EnumRows + ");&lt;/script&gt;", true);
  </code></pre>
  
  <p>js:</p>
  
  <pre><code>function AddItem(EnumRows) {    
      // Create an Option object                
      // var opt = document.createElement("option");
      alert('this');
      // Add an Option object to Drop Down/List Box
      document.getElementById("&lt;%=cbField.ClientID%&gt;").options.add(opt);
      // Assign text and value to Option object
      opt.text = Value;
  }
  </code></pre>