title: How to Use Relative URL in Ajax Post in MVC3
body: <p>I have an Ajax post call written in a separate ".js" file which I call in multiple pages.
  My code looks like this:</p>
  
  <pre><code>    $.ajax({
                 url: '/MyVirtualDirectory/Controller/Action',
                 type: 'POST',
                 dataType: 'json',
                 ....
                 ....
                })
  </code></pre>
  
  <p>Each time I change my virtual directory in my server, I'm required to change the code in "URL" to make my Ajax call working.</p>
  
  <p>Is there any method that can make my code independent of my "Virtual Directory" name in IIS ..?</p>
  
  <p>My application is MVC3.</p>