Skip to main content

RazorViewExtensions

Assembly: ServiceStack.Mvc.dll​
View Source​
Declaration
public static class RazorViewExtensions : object

Methods​

AsRawJson<T>(T)​

View Source​
Declaration
public static HtmlString AsRawJson<T>(this T model)
Returns​

HtmlString

Parameters​
TypeName
<T>model
Type Parameters​
  • T

AsRaw<T>(T)​

View Source​
Declaration
public static HtmlString AsRaw<T>(this T model)
Returns​

HtmlString

Parameters​
TypeName
<T>model
Type Parameters​
  • T

GetErrorHtml(ResponseStatus)​

View Source​
Declaration
public static string GetErrorHtml(ResponseStatus responseStatus)
Returns​

System.String

Parameters​
TypeName
ServiceStack.ResponseStatusresponseStatus

GetRequest(IHtmlHelper)​

View Source​
Declaration
public static IRequest GetRequest(this IHtmlHelper htmlHelper)
Returns​

ServiceStack.Web.IRequest

Parameters​
TypeName
IHtmlHelperhtmlHelper

GetResponse(IHtmlHelper)​

View Source​
Declaration
public static IResponse GetResponse(this IHtmlHelper htmlHelper)
Returns​

ServiceStack.Web.IResponse

Parameters​
TypeName
IHtmlHelperhtmlHelper

GetHttpRequest(IHtmlHelper)​

View Source​
Declaration
public static HttpRequest GetHttpRequest(this IHtmlHelper htmlHelper)
Returns​

HttpRequest

Parameters​
TypeName
IHtmlHelperhtmlHelper

GetHttpResponse(IHtmlHelper)​

View Source​
Declaration
public static HttpResponse GetHttpResponse(this IHtmlHelper htmlHelper)
Returns​

HttpResponse

Parameters​
TypeName
IHtmlHelperhtmlHelper

PartialMarkdown(IHtmlHelper, String)​

View Source​
Declaration
public static IHtmlContent PartialMarkdown(this IHtmlHelper htmlHelper, string partial)
Returns​

IHtmlContent

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.Stringpartial

RenderMarkdown(IHtmlHelper, String)​

View Source​
Declaration
public static IHtmlContent RenderMarkdown(this IHtmlHelper htmlHelper, string markdown)
Returns​

IHtmlContent

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.Stringmarkdown

ResolveLayout(IHtmlHelper, String)​

View Source​
Declaration
public static string ResolveLayout(this IHtmlHelper htmlHelper, string defaultLayout)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.StringdefaultLayout

GetQueryString(IHtmlHelper, String)​

View Source​
Declaration
public static string GetQueryString(this IHtmlHelper htmlHelper, string paramName)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.StringparamName

GetFormData(IHtmlHelper, String)​

View Source​
Declaration
public static string GetFormData(this IHtmlHelper htmlHelper, string paramName)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.StringparamName

IncludeFile(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString IncludeFile(this IHtmlHelper htmlHelper, string virtualPath)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtmlHelper
System.StringvirtualPath

ToHtmlString(String)​

View Source​
Declaration
public static HtmlString ToHtmlString(this string str)
Returns​

HtmlString

Parameters​
TypeName
System.Stringstr

GetItem(IHtmlHelper, String)​

View Source​
Declaration
public static object GetItem(this IHtmlHelper html, string key)
Returns​

System.Object

Parameters​
TypeName
IHtmlHelperhtml
System.Stringkey

GetErrorStatus(IHtmlHelper)​

View Source​
Declaration
public static ResponseStatus GetErrorStatus(this IHtmlHelper html)
Returns​

ServiceStack.ResponseStatus

Parameters​
TypeName
IHtmlHelperhtml

HasErrorStatus(IHtmlHelper)​

View Source​
Declaration
public static bool HasErrorStatus(this IHtmlHelper html)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml

Form(IHtmlHelper, String)​

View Source​
Declaration
public static string Form(this IHtmlHelper html, string name)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

Query(IHtmlHelper, String)​

View Source​
Declaration
public static string Query(this IHtmlHelper html, string name)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

FormQuery(IHtmlHelper, String)​

View Source​
Declaration
public static string FormQuery(this IHtmlHelper html, string name)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

FormQueryValues(IHtmlHelper, String)​

View Source​
Declaration
public static string[] FormQueryValues(this IHtmlHelper html, string name)
Returns​

System.String[]

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

FormValue(IHtmlHelper, String)​

View Source​
Declaration
public static string FormValue(this IHtmlHelper html, string name)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

FormValue(IHtmlHelper, String, String)​

View Source​
Declaration
public static string FormValue(this IHtmlHelper html, string name, string defaultValue)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname
System.StringdefaultValue

FormValues(IHtmlHelper, String)​

View Source​
Declaration
public static string[] FormValues(this IHtmlHelper html, string name)
Returns​

System.String[]

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

FormCheckValue(IHtmlHelper, String)​

View Source​
Declaration
public static bool FormCheckValue(this IHtmlHelper html, string name)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

GetParam(IHtmlHelper, String)​

View Source​
Declaration
public static string GetParam(this IHtmlHelper html, string name)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

ErrorResponseExcept(IHtmlHelper, String)​

View Source​
Declaration
public static string ErrorResponseExcept(this IHtmlHelper html, string fieldNames)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.StringfieldNames

ErrorResponseExcept(IHtmlHelper, ICollection<String>)​

View Source​
Declaration
public static string ErrorResponseExcept(this IHtmlHelper html, ICollection<string> fieldNames)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>fieldNames

ErrorResponseSummary(IHtmlHelper)​

View Source​
Declaration
public static string ErrorResponseSummary(this IHtmlHelper html)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml

ErrorResponseSummary(IHtmlHelper, String)​

View Source​
Declaration
public static string ErrorResponseSummary(this IHtmlHelper html, string exceptFor)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.StringexceptFor

ErrorResponse(IHtmlHelper, String)​

View Source​
Declaration
public static string ErrorResponse(this IHtmlHelper html, string fieldName)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.StringfieldName

IsDebug(IHtmlHelper)​

View Source​
Declaration
public static bool IsDebug(this IHtmlHelper html)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml

GetSession(IHtmlHelper)​

View Source​
Declaration
public static IAuthSession GetSession(this IHtmlHelper html)
Returns​

ServiceStack.Auth.IAuthSession

Parameters​
TypeName
IHtmlHelperhtml

IsAuthenticated(IHtmlHelper)​

View Source​
Declaration
public static bool IsAuthenticated(this IHtmlHelper html)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml

UserProfileUrl(IHtmlHelper)​

View Source​
Declaration
public static string UserProfileUrl(this IHtmlHelper html)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml

ErrorSummary(IHtmlHelper, String)​

Alias for ServiceStack Html.ValidationSummary() with comma-delimited field names

View Source​
Declaration
public static HtmlString ErrorSummary(this IHtmlHelper html, string exceptFor)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.StringexceptFor

ErrorSummary(IHtmlHelper)​

View Source​
Declaration
public static HtmlString ErrorSummary(this IHtmlHelper html)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml

ErrorSummary(IHtmlHelper, ICollection<String>)​

View Source​
Declaration
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields

ErrorSummary(IHtmlHelper, ICollection<String>, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields, Dictionary<string, object> divAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields
Dictionary<System.String,System.Object>divAttrs

ErrorSummary(IHtmlHelper, ICollection<String>, Object)​

View Source​
Declaration
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields, object divAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields
System.ObjectdivAttrs

ValidationSummary(IHtmlHelper, ICollection<String>)​

View Source​
Declaration
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields

ValidationSummary(IHtmlHelper, ICollection<String>, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields, Dictionary<string, object> divAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields
Dictionary<System.String,System.Object>divAttrs

ValidationSummary(IHtmlHelper, ICollection<String>, Object)​

View Source​
Declaration
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields, object divAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ICollection<System.String>exceptFields
System.ObjectdivAttrs

ValidationSuccess(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString ValidationSuccess(this IHtmlHelper html, string message)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringmessage

ValidationSuccess(IHtmlHelper, String, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString ValidationSuccess(this IHtmlHelper html, string message, Dictionary<string, object> divAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringmessage
Dictionary<System.String,System.Object>divAttrs

HiddenInputs(IHtmlHelper, IEnumerable<KeyValuePair<String, String>>)​

View Source​
Declaration
public static HtmlString HiddenInputs(this IHtmlHelper html, IEnumerable<KeyValuePair<string, string>> kvps)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
IEnumerable<KeyValuePair<System.String,System.String>>kvps

HiddenInputs(IHtmlHelper, IEnumerable<KeyValuePair<String, Object>>)​

View Source​
Declaration
public static HtmlString HiddenInputs(this IHtmlHelper html, IEnumerable<KeyValuePair<string, object>> kvps)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
IEnumerable<KeyValuePair<System.String,System.Object>>kvps

HiddenInputs(IHtmlHelper, Object)​

View Source​
Declaration
public static HtmlString HiddenInputs(this IHtmlHelper html, object kvps)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Objectkvps

FormTextarea(IHtmlHelper, Object)​

View Source​
Declaration
public static HtmlString FormTextarea(this IHtmlHelper html, object inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs

FormTextarea(IHtmlHelper, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString FormTextarea(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs

FormTextarea(IHtmlHelper, Object, InputOptions)​

View Source​
Declaration
public static HtmlString FormTextarea(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs
ServiceStack.InputOptionsinputOptions

FormTextarea(IHtmlHelper, Dictionary<String, Object>, InputOptions)​

View Source​
Declaration
public static HtmlString FormTextarea(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs
ServiceStack.InputOptionsinputOptions

FormSelect(IHtmlHelper, Object)​

View Source​
Declaration
public static HtmlString FormSelect(this IHtmlHelper html, object inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs

FormSelect(IHtmlHelper, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString FormSelect(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs

FormSelect(IHtmlHelper, Object, InputOptions)​

View Source​
Declaration
public static HtmlString FormSelect(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs
ServiceStack.InputOptionsinputOptions

FormSelect(IHtmlHelper, Dictionary<String, Object>, InputOptions)​

View Source​
Declaration
public static HtmlString FormSelect(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs
ServiceStack.InputOptionsinputOptions

FormInput(IHtmlHelper, Object)​

View Source​
Declaration
public static HtmlString FormInput(this IHtmlHelper html, object inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs

FormInput(IHtmlHelper, Dictionary<String, Object>)​

View Source​
Declaration
public static HtmlString FormInput(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs

FormInput(IHtmlHelper, Object, InputOptions)​

View Source​
Declaration
public static HtmlString FormInput(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs
ServiceStack.InputOptionsinputOptions

FormInput(IHtmlHelper, Dictionary<String, Object>, InputOptions)​

View Source​
Declaration
public static HtmlString FormInput(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs
ServiceStack.InputOptionsinputOptions

FormControl(IHtmlHelper, Object, String, InputOptions)​

View Source​
Declaration
public static HtmlString FormControl(this IHtmlHelper html, object inputAttrs, string tagName, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.ObjectinputAttrs
System.StringtagName
ServiceStack.InputOptionsinputOptions

FormControl(IHtmlHelper, Dictionary<String, Object>, String, InputOptions)​

View Source​
Declaration
public static HtmlString FormControl(this IHtmlHelper html, Dictionary<string, object> inputAttrs, string tagName, InputOptions inputOptions)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
Dictionary<System.String,System.Object>inputAttrs
System.StringtagName
ServiceStack.InputOptionsinputOptions

BundleJs(IHtmlHelper, BundleOptions)​

View Source​
Declaration
public static HtmlString BundleJs(this IHtmlHelper html, BundleOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.BundleOptionsoptions

BundleCss(IHtmlHelper, BundleOptions)​

View Source​
Declaration
public static HtmlString BundleCss(this IHtmlHelper html, BundleOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.BundleOptionsoptions

BundleHtml(IHtmlHelper, BundleOptions)​

View Source​
Declaration
public static HtmlString BundleHtml(this IHtmlHelper html, BundleOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.BundleOptionsoptions

Exec<T>(IHtmlHelper, Func<T>, out Exception)​

View Source​
Declaration
public static T Exec<T>(this IHtmlHelper html, Func<T> fn, out Exception ex)
Returns​

<T>

Parameters​
TypeName
IHtmlHelperhtml
Func<<T>>fn
Exceptionex
Type Parameters​
  • T

TextDump(IHtmlHelper, Object)​

View Source​
Declaration
public static string TextDump(this IHtmlHelper html, object target)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Objecttarget

TextDump(IHtmlHelper, Object, TextDumpOptions)​

View Source​
Declaration
public static string TextDump(this IHtmlHelper html, object target, TextDumpOptions options)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml
System.Objecttarget
ServiceStack.TextDumpOptionsoptions

HtmlDump(IHtmlHelper, Object)​

View Source​
Declaration
public static HtmlString HtmlDump(this IHtmlHelper html, object target)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Objecttarget

HtmlDump(IHtmlHelper, Object, HtmlDumpOptions)​

View Source​
Declaration
public static HtmlString HtmlDump(this IHtmlHelper html, object target, HtmlDumpOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Objecttarget
ServiceStack.HtmlDumpOptionsoptions

GetNavItems(IHtmlHelper)​

View Source​
Declaration
public static List<NavItem> GetNavItems(this IHtmlHelper html)
Returns​

List<ServiceStack.NavItem>

Parameters​
TypeName
IHtmlHelperhtml

GetNavItems(IHtmlHelper, String)​

View Source​
Declaration
public static List<NavItem> GetNavItems(this IHtmlHelper html, string key)
Returns​

List<ServiceStack.NavItem>

Parameters​
TypeName
IHtmlHelperhtml
System.Stringkey

Nav(IHtmlHelper)​

View Source​
Declaration
public static HtmlString Nav(this IHtmlHelper html)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml

Nav(IHtmlHelper, NavOptions)​

View Source​
Declaration
public static HtmlString Nav(this IHtmlHelper html, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.NavOptionsoptions

Nav(IHtmlHelper, List<NavItem>)​

View Source​
Declaration
public static HtmlString Nav(this IHtmlHelper html, List<NavItem> navItems)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems

Nav(IHtmlHelper, List<NavItem>, NavOptions)​

View Source​
Declaration
public static HtmlString Nav(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems
ServiceStack.NavOptionsoptions

Navbar(IHtmlHelper)​

View Source​
Declaration
public static HtmlString Navbar(this IHtmlHelper html)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml

Navbar(IHtmlHelper, NavOptions)​

View Source​
Declaration
public static HtmlString Navbar(this IHtmlHelper html, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.NavOptionsoptions

Navbar(IHtmlHelper, List<NavItem>)​

View Source​
Declaration
public static HtmlString Navbar(this IHtmlHelper html, List<NavItem> navItems)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems

Navbar(IHtmlHelper, List<NavItem>, NavOptions)​

View Source​
Declaration
public static HtmlString Navbar(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems
ServiceStack.NavOptionsoptions

NavLink(IHtmlHelper, NavItem)​

View Source​
Declaration
public static HtmlString NavLink(this IHtmlHelper html, NavItem navItem)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.NavItemnavItem

NavLink(IHtmlHelper, NavItem, NavOptions)​

View Source​
Declaration
public static HtmlString NavLink(this IHtmlHelper html, NavItem navItem, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.NavItemnavItem
ServiceStack.NavOptionsoptions

NavButtonGroup(IHtmlHelper)​

View Source​
Declaration
public static HtmlString NavButtonGroup(this IHtmlHelper html)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml

NavButtonGroup(IHtmlHelper, NavOptions)​

View Source​
Declaration
public static HtmlString NavButtonGroup(this IHtmlHelper html, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
ServiceStack.NavOptionsoptions

NavButtonGroup(IHtmlHelper, List<NavItem>)​

View Source​
Declaration
public static HtmlString NavButtonGroup(this IHtmlHelper html, List<NavItem> navItems)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems

NavButtonGroup(IHtmlHelper, List<NavItem>, NavOptions)​

View Source​
Declaration
public static HtmlString NavButtonGroup(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
List<ServiceStack.NavItem>navItems
ServiceStack.NavOptionsoptions

CssIncludes(IHtmlHelper, String[])​

View Source​
Declaration
public static HtmlString CssIncludes(this IHtmlHelper html, params string[] cssFiles)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.String[]cssFiles

JsIncludes(IHtmlHelper, String[])​

View Source​
Declaration
public static HtmlString JsIncludes(this IHtmlHelper html, params string[] jsFiles)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.String[]jsFiles

SvgImage(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString SvgImage(this IHtmlHelper html, string name)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

SvgImage(IHtmlHelper, String, String)​

View Source​
Declaration
public static HtmlString SvgImage(this IHtmlHelper html, string name, string fillColor)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname
System.StringfillColor

SvgDataUri(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString SvgDataUri(this IHtmlHelper html, string name)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

SvgDataUri(IHtmlHelper, String, String)​

View Source​
Declaration
public static HtmlString SvgDataUri(this IHtmlHelper html, string name, string fillColor)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname
System.StringfillColor

SvgBackgroundImageCss(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString SvgBackgroundImageCss(this IHtmlHelper html, string name)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname

SvgBackgroundImageCss(IHtmlHelper, String, String)​

View Source​
Declaration
public static HtmlString SvgBackgroundImageCss(this IHtmlHelper html, string name, string fillColor)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringname
System.StringfillColor

SvgInBackgroundImageCss(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString SvgInBackgroundImageCss(this IHtmlHelper html, string svg)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringsvg

SvgFill(IHtmlHelper, String, String)​

View Source​
Declaration
public static HtmlString SvgFill(this IHtmlHelper html, string svg, string color)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringsvg
System.Stringcolor

SvgBaseUrl(IHtmlHelper)​

View Source​
Declaration
public static string SvgBaseUrl(this IHtmlHelper html)
Returns​

System.String

Parameters​
TypeName
IHtmlHelperhtml

GetAbsoluteUrl(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString GetAbsoluteUrl(this IHtmlHelper html, string virtualPath)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.StringvirtualPath

Gateway(IHtmlHelper)​

View Source​
Declaration
public static IServiceGateway Gateway(this IHtmlHelper html)
Returns​

ServiceStack.IServiceGateway

Parameters​
TypeName
IHtmlHelperhtml

RedirectIfNotAuthenticated(IHtmlHelper, String)​

View Source​
Declaration
public static void RedirectIfNotAuthenticated(this IHtmlHelper html, string redirect = null)
Parameters​
TypeName
IHtmlHelperhtml
System.Stringredirect

RedirectToAsync(IHtmlHelper, String)​

View Source​
Declaration
public static Task RedirectToAsync(this IHtmlHelper html, string path)
Returns​

Task

Parameters​
TypeName
IHtmlHelperhtml
System.Stringpath

RedirectTo(IHtmlHelper, String)​

View Source​
Declaration
public static HtmlString RedirectTo(this IHtmlHelper html, string path)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringpath

HasRole(IHtmlHelper, String)​

View Source​
Declaration
public static bool HasRole(this IHtmlHelper html, string role)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml
System.Stringrole

HasPermission(IHtmlHelper, String)​

View Source​
Declaration
public static bool HasPermission(this IHtmlHelper html, string permission)
Returns​

System.Boolean

Parameters​
TypeName
IHtmlHelperhtml
System.Stringpermission

AssertRole(IHtmlHelper, String, String, String)​

View Source​
Declaration
public static HtmlString AssertRole(this IHtmlHelper html, string role, string message = null, string redirect = null)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringrole
System.Stringmessage
System.Stringredirect

AssertRoleAsync(IHtmlHelper, String, String, String)​

View Source​
Declaration
public static Task AssertRoleAsync(this IHtmlHelper html, string role, string message = null, string redirect = null)
Returns​

Task

Parameters​
TypeName
IHtmlHelperhtml
System.Stringrole
System.Stringmessage
System.Stringredirect

AssertPermission(IHtmlHelper, String, String, String)​

View Source​
Declaration
public static HtmlString AssertPermission(this IHtmlHelper html, string permission, string message = null, string redirect = null)
Returns​

HtmlString

Parameters​
TypeName
IHtmlHelperhtml
System.Stringpermission
System.Stringmessage
System.Stringredirect

AssertPermissionAsync(IHtmlHelper, String, String, String)​

View Source​
Declaration
public static Task AssertPermissionAsync(this IHtmlHelper html, string permission, string message = null, string redirect = null)
Returns​

Task

Parameters​
TypeName
IHtmlHelperhtml
System.Stringpermission
System.Stringmessage
System.Stringredirect