title: jQuery TreeView with ASP.NET MVC how to pass argument to url
body: <p>Here's the problem:</p>
  
  <p>I'm trying to do an Active Directory Explorer with Asynch. jQuery TreeView. In standard ASP.NEt it was fairly easy with builtin TreeView and some events in code-behind.</p>
  
  <p>The problem is that I don't exactly know how can I pass different arguments depending on which treeview leaf is being expanded. Based on this example <a href="http://view.jquery.com/trunk/plugins/treeview/demo/async.html" rel="nofollow noreferrer">http://view.jquery.com/trunk/plugins/treeview/demo/async.html</a> I can see that there is a very simple if with PHP and the 'root' argument is passed on page load. </p>
  
  <p>Eg. </p>
  
  <p>I have this tree:</p>
  
  <p>+A<br />
  +B<br />
  +C</p>
  
  <p>and i want to call MyController/MyAction/B when expanding B. Should I add some method in</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#black").treeview({
              url: "source.php"
                          toggle: do_something_here?
          })
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>I'm kinda stuck in here, so any help would be appreciated.</p>