Click or drag to resize

HtmlHelper Class

Defines an HTML helper class for IRazorEngine views.
Inheritance Hierarchy
SystemObject
  GSF.Web.ModelHtmlHelper

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public class HtmlHelper
View Source

The HtmlHelper type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIncludeResource Includes an embedded resource directly into view page.
Public methodIncludeUrl Includes an HTTP resource directly into view page.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPartial Includes the template with the specified name.
Public methodRaw Returns a string value that is not HTML encoded.
Public methodRenderResource(String, Type, Object) Renders a Razor view from an embedded resource.
Public methodRenderResourceT(String, T) Renders a Razor view from an embedded resource.
Public methodRequestVerificationHeaderToken Generates an anti-forgery token that can be manually added to an HTTP request header, e.g., from within an AJAX request.
Public methodRequestVerificationToken Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
Public methodToAbsoluteUrl Converts relative URL to an absolute URL.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This class provides Razor view compatibility functions so that the same view syntax, e.g., @Html.Raw(""), can be used in both self-hosted and ASP.NET hosted web sites.
See Also