I am not familiar with VB, but it should work when you create anonymous objects as follows:
@Html.ActionLink("Send Message", "SendCustomerMessage", "SendMessage", new {id = currentItem.CustomerId}, new { @class = "btn"})
We need @
before the class
, because class
is the word reserverd in C #. You can learn more about anonymous types .
source share