Class DnnHtmlHelper
Inheritance
System.Object
DnnHtmlHelper
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class DnnHtmlHelper : object
Constructors
|
Improve this Doc
View Source
DnnHtmlHelper(HtmlHelper)
Declaration
protected DnnHtmlHelper(HtmlHelper htmlHelper)
Parameters
| Type |
Name |
Description |
| HtmlHelper |
htmlHelper |
The HtmlHelper to wrap.
|
|
Improve this Doc
View Source
DnnHtmlHelper(ViewContext, IViewDataContainer, RouteCollection)
Declaration
public DnnHtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer, RouteCollection routeCollection)
Parameters
| Type |
Name |
Description |
| ViewContext |
viewContext |
The view context.
|
| IViewDataContainer |
viewDataContainer |
The ViewData container.
|
| RouteCollection |
routeCollection |
The route collection.
|
|
Improve this Doc
View Source
DnnHtmlHelper(ViewContext, IViewDataContainer)
Declaration
public DnnHtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer)
Parameters
| Type |
Name |
Description |
| ViewContext |
viewContext |
The view context.
|
| IViewDataContainer |
viewDataContainer |
The ViewData container.
|
Properties
|
Improve this Doc
View Source
ModuleContext
Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
| Type |
Description |
| ModuleInstanceContext |
|
|
Improve this Doc
View Source
RouteCollection
Declaration
public RouteCollection RouteCollection { get; }
Property Value
| Type |
Description |
| RouteCollection |
|
|
Improve this Doc
View Source
ViewBag
Declaration
public dynamic ViewBag { get; }
Property Value
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
ViewContext
Declaration
public ViewContext ViewContext { get; }
Property Value
| Type |
Description |
| ViewContext |
|
|
Improve this Doc
View Source
ViewData
Declaration
public ViewDataDictionary ViewData { get; }
Property Value
| Type |
Description |
| ViewDataDictionary |
|
|
Improve this Doc
View Source
ViewDataContainer
Declaration
public IViewDataContainer ViewDataContainer { get; }
Property Value
| Type |
Description |
| IViewDataContainer |
|
Methods
|
Improve this Doc
View Source
AntiForgeryToken()
Declaration
public MvcHtmlString AntiForgeryToken()
Returns
| Type |
Description |
| MvcHtmlString |
|
|
Improve this Doc
View Source
AttributeEncode(Object)
Declaration
public string AttributeEncode(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
AttributeEncode(String)
Declaration
public string AttributeEncode(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
EnableClientValidation()
Declaration
public void EnableClientValidation()
|
Improve this Doc
View Source
EnableClientValidation(Boolean)
Declaration
public void EnableClientValidation(bool enabled)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enabled |
|
|
Improve this Doc
View Source
EnableUnobtrusiveJavaScript()
Declaration
public void EnableUnobtrusiveJavaScript()
|
Improve this Doc
View Source
EnableUnobtrusiveJavaScript(Boolean)
Declaration
public void EnableUnobtrusiveJavaScript(bool enabled)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enabled |
|
|
Improve this Doc
View Source
Encode(Object)
Declaration
public string Encode(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Encode(String)
Declaration
public string Encode(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Declaration
public string FormatValue(object value, string format)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| System.String |
format |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name, ModelMetadata metadata)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| ModelMetadata |
metadata |
|
Returns
| Type |
Description |
| IDictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
GetUnobtrusiveValidationAttributes(String)
Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| IDictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
HttpMethodOverride(HttpVerbs)
Declaration
public MvcHtmlString HttpMethodOverride(HttpVerbs httpVerb)
Parameters
| Type |
Name |
Description |
| HttpVerbs |
httpVerb |
|
Returns
| Type |
Description |
| MvcHtmlString |
|
|
Improve this Doc
View Source
HttpMethodOverride(String)
Declaration
public MvcHtmlString HttpMethodOverride(string httpVerb)
Parameters
| Type |
Name |
Description |
| System.String |
httpVerb |
|
Returns
| Type |
Description |
| MvcHtmlString |
|
|
Improve this Doc
View Source
Raw(Object)
Declaration
public IHtmlString Raw(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| IHtmlString |
|
|
Improve this Doc
View Source
Raw(String)
Declaration
public IHtmlString Raw(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
| Type |
Description |
| IHtmlString |
|
Extension Methods