title: .net mvc inline code anchor attribute
body: <pre><code>&lt;a href="#" onclick="declineWindow(&lt;%= Html.Encode(item.ConnectionRequestId) %&gt;);"&gt;Decline&lt;/a&gt;
  </code></pre>
  
  <p>Can anybody explain why the inline code block doesn't work when I use it to populate the value of an attribute? Intellisense stops working and the page throws an error. If I move the block outside a the "a" tag then it works fine. </p>