Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Last active August 29, 2015 14:20
Show Gist options
  • Save johnmmoss/eeedcc5f9c82502bc42e to your computer and use it in GitHub Desktop.
Save johnmmoss/eeedcc5f9c82502bc42e to your computer and use it in GitHub Desktop.
CSRF Html helper
@using (Html.BeginForm("Index", "Feedback"))
{
@Html.AntiForgeryToken()
<!-- form controls -->
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment