Export (0) Print
Expand All

HtmlHelper<TModel>.AntiForgeryToken Method

Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method AntiForgeryToken() Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. (Inherited from HtmlHelper.)
Public method AntiForgeryToken(String) Obsolete. Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value. (Inherited from HtmlHelper.)
Public method AntiForgeryToken(String, String, String) Obsolete. Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value, domain, and path. (Inherited from HtmlHelper.)
Top
Show:
© 2014 Microsoft