I want to use ActionLink instead of plain html to popup my modal window but its working fine with plain html tag but not with MVC actionlink please have a look below.
from: (working)
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
to: (error)
@Html.ActionLink("Edit", "Edit", null, new { id = @item.Id }, new { @data-toggle="modal", @data-target="#myModal" })
Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.
new { data_toggle="modal", data_target="#myModal" }
– user3559349