I'm trying mitigate CSRF issues for MVC application but facing issues while adding anti forgery token in following code in cshtml. Tried searching around but no concrete solution found.
Would appreciate any help..
<td class="ignoreClick">
@Ajax.ActionLink(
"Delete","DeleteStudent","RqstProcessor",
new
{
id = current.key
},
new AjaxOptions
{
AllowCache = false,
HttpMethod = "POST",
UpdateTargetId = "StudentList",
InsertionMode = InsertionMode.Replace,
},
new
{
@class = "ignoreClick"
}
)
</td>
dpkOne