title: How can I call a codebehind function from JavaScript?
body: <p>I have a JavaScript function which i call in the onchange handler of a dropdownlist. If the selected value of dropdownlist is "1" i want to call one function in codebehind.
  Following is the  function in JavaScript:</p>
  
  <pre><code>function  GetAdmissionType()
      {
          InitComponents();
          var type="";
          type=document.getElementById(dlAdmissionType.id).value;
          document.getElementById(hdnAdmissionType.id).value=document.getElementById(dlAdmissionType.id).value;
          if(type=="1")
          {
          }
    }
  </code></pre>
  
  <p>If type is 1 then i want to work following code in codebehind</p>
  
  <pre><code>public void LoadSemesters()
  {
     //code to load other dropdownlists
  }
  </code></pre>
  
  <p>Can anybody help to call function in codebehind from JavaScript?</p>