title: MVC Url.Content with javascript local variable
body: <p>I have problem with this:</p>
  
  <pre><code>var id=5;
  var el = $("MainPhotoHolder");
  el.attr("src", '@Url.Content("~/Page/GetImage/" + id)');
  </code></pre>
  
  <p>id is a local javascript variable, but it gives me an error saying that is not in the context. My question is how do i point out that it should be a javascript variable and not a c# one ...?</p>