Click or drag to resize
Helpers Methods

The Helpers type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleDefineSection
Assigns content to a named section.
Public methodStatic memberCode exampleHtmlAntiForgeryToken
Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
Public methodStatic memberCode exampleHtmlRenderAction
Invokes the child action method using the specified parameters and renders the result inline in the parent view.
Public methodStatic memberCode exampleIsSectionDefined
Returns a value to be used within an #if subexpression whether a section name has been defined.
Public methodStatic memberCode exampleRenderSection
Renders the named section.
Public methodStatic memberCode exampleScriptsRender
Renders script tags for the specified paths.
Public methodStatic memberCode exampleStylesRender
Renders link tags for a set of paths.
Public methodStatic memberCode exampleUrlAction
Generates a fully qualified URL to an action method.
Public methodStatic memberCode exampleUrlContent
Converts a virtual (relative) path to an application absolute path and renders the result.
Public methodStatic memberCode exampleUrlEncode
Encodes text so it is usable in a URL.
Top
See Also