title: Can not access variable from @Url.Action
body: <p>I have this Javascript in a ASP.Net MVC page</p>
  
  <pre><code>onComplete: function (id, fileName, responseJSON) {
      if (responseJSON.success) {
          $('#divImgs ul').append(
              $('&lt;li&gt;').append(
              $('&lt;a&gt;').attr('href', 
                  '@Url.Action("DeleteFile", "Upload", new { id = fileName})').append(
              $('&lt;img&gt;').attr('src', responseJSON.filePath))
           ));
       }
   }
  </code></pre>
  
  <p>This gives Compilation error</p>
  
  <pre><code>The name 'fileName' does not exist in the current context
  </code></pre>
  
  <p>Why can't I access <code>fileName</code> variable within the <code>@Url.Action</code>?</p>