title: Passing page control from jscript to pagemethod in the codebehind?
body: <p>I am looking write a javascript method as such called when a dropdownlist changes value</p>
  
  <pre><code>function GetStuff(sender, destID){
  
      var dest = document.getElementById(destID);
      this.PageMethods.GetStuffs(sender, dest, null, null);
  }
  </code></pre>
  
  <p>GetStuffs() is in the Codebehind as follows:</p>
  
  <pre><code>[WebMethod]
  public static void GetStuffs(object sender, object dest)
  {
      DropDownList s = sender as DropDownList;
      DropDownList d = dest as DropDownList;
  
      d.Items.Add(new ListItem(s.SelectedValue));
  }
  </code></pre>
  
  <p>I have a break point set at the method and alerts in the GetStuff() jscript method fire up until the PageMethod call, at which nothing happens. I have set OnSuccess and OnFailure methods up with alerts and they don't get fired.</p>
  
  <p>Any thoughts? Am I doing something inherently wrong?</p>