<a href="#" onclick="declineWindow(<%= Html.Encode(item.ConnectionRequestId) %>);">Decline</a>
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.