title: MVC Razor jQuery partial view rendering
body: <p><em>How can I convert 
  <code>$("#myChildTabName").load("./MyController/MyMethod/" + myParameter);</code>
  to use <code>@url.Action</code> ?
  <code>MyMethod</code> returns a PartialView. Basically I am I want to load a partial view upon click on the Tab.</em></p>
  
  <p>Update as below:
  I have figured out a solution as below, but this is giving an error saying that <code>applicationID</code> does not exist in the current context. An alert just above the jQuery call does display <code>applicationID</code>.</p>
  
  <pre><code>//The below code DOES NOT work.
  
  function LoadTabContents(applicationID)
  {
          $("#currentTab").load('@Url.Action("TabMethod", "MyController", new { @id = applicationID })')
  }
  </code></pre>
  
  <p></p>
  
  <pre><code>//The below code works fine.
  
  function LoadTabContents(applicationID)
  {
          $("#currentTab").load('@Url.Action("TabMethod", "MyController", new { @id = 123})')
  }
  </code></pre>