RazorViewExtensions
Assembly: ServiceStack.Mvc.dll
View Source
public static class RazorViewExtensions : object
Methods
AsRawJson<T>(T)
View Source
public static HtmlString AsRawJson<T>(this T model)
Returns
HtmlString
Parameters
Type | Name |
---|---|
<T> | model |
Type Parameters
T
AsRaw<T>(T)
View Source
public static HtmlString AsRaw<T>(this T model)
Returns
HtmlString
Parameters
Type | Name |
---|---|
<T> | model |
Type Parameters
T
GetErrorHtml(ResponseStatus)
View Source
public static string GetErrorHtml(ResponseStatus responseStatus)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.ResponseStatus | responseStatus |
GetRequest(IHtmlHelper)
View Source
public static IRequest GetRequest(this IHtmlHelper htmlHelper)
Returns
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
GetResponse(IHtmlHelper)
View Source
public static IResponse GetResponse(this IHtmlHelper htmlHelper)
Returns
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
GetHttpRequest(IHtmlHelper)
View Source
public static HttpRequest GetHttpRequest(this IHtmlHelper htmlHelper)
Returns
HttpRequest
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
GetHttpResponse(IHtmlHelper)
View Source
public static HttpResponse GetHttpResponse(this IHtmlHelper htmlHelper)
Returns
HttpResponse
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
PartialMarkdown(IHtmlHelper, String)
View Source
public static IHtmlContent PartialMarkdown(this IHtmlHelper htmlHelper, string partial)
Returns
IHtmlContent
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | partial |
RenderMarkdown(IHtmlHelper, String)
View Source
public static IHtmlContent RenderMarkdown(this IHtmlHelper htmlHelper, string markdown)
Returns
IHtmlContent
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | markdown |
ResolveLayout(IHtmlHelper, String)
View Source
public static string ResolveLayout(this IHtmlHelper htmlHelper, string defaultLayout)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | defaultLayout |
GetQueryString(IHtmlHelper, String)
View Source
public static string GetQueryString(this IHtmlHelper htmlHelper, string paramName)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | paramName |
GetFormData(IHtmlHelper, String)
View Source
public static string GetFormData(this IHtmlHelper htmlHelper, string paramName)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | paramName |
IncludeFile(IHtmlHelper, String)
View Source
public static HtmlString IncludeFile(this IHtmlHelper htmlHelper, string virtualPath)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | htmlHelper |
System.String | virtualPath |
ToHtmlString(String)
View Source
public static HtmlString ToHtmlString(this string str)
Returns
HtmlString
Parameters
Type | Name |
---|---|
System.String | str |
GetItem(IHtmlHelper, String)
View Source
public static object GetItem(this IHtmlHelper html, string key)
Returns
System.Object
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | key |
GetErrorStatus(IHtmlHelper)
View Source
public static ResponseStatus GetErrorStatus(this IHtmlHelper html)
Returns
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
HasErrorStatus(IHtmlHelper)
View Source
public static bool HasErrorStatus(this IHtmlHelper html)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Form(IHtmlHelper, String)
View Source
public static string Form(this IHtmlHelper html, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
Query(IHtmlHelper, String)
View Source
public static string Query(this IHtmlHelper html, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
FormQuery(IHtmlHelper, String)
View Source
public static string FormQuery(this IHtmlHelper html, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
FormQueryValues(IHtmlHelper, String)
View Source
public static string[] FormQueryValues(this IHtmlHelper html, string name)
Returns
System.String[]
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
FormValue(IHtmlHelper, String)
View Source
public static string FormValue(this IHtmlHelper html, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
FormValue(IHtmlHelper, String, String)
View Source
public static string FormValue(this IHtmlHelper html, string name, string defaultValue)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
System.String | defaultValue |
FormValues(IHtmlHelper, String)
View Source
public static string[] FormValues(this IHtmlHelper html, string name)
Returns
System.String[]
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
FormCheckValue(IHtmlHelper, String)
View Source
public static bool FormCheckValue(this IHtmlHelper html, string name)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
GetParam(IHtmlHelper, String)
View Source
public static string GetParam(this IHtmlHelper html, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
ErrorResponseExcept(IHtmlHelper, String)
View Source
public static string ErrorResponseExcept(this IHtmlHelper html, string fieldNames)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | fieldNames |
ErrorResponseExcept(IHtmlHelper, ICollection<String>)
View Source
public static string ErrorResponseExcept(this IHtmlHelper html, ICollection<string> fieldNames)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | fieldNames |
ErrorResponseSummary(IHtmlHelper)
View Source
public static string ErrorResponseSummary(this IHtmlHelper html)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ErrorResponseSummary(IHtmlHelper, String)
View Source
public static string ErrorResponseSummary(this IHtmlHelper html, string exceptFor)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | exceptFor |
ErrorResponse(IHtmlHelper, String)
View Source
public static string ErrorResponse(this IHtmlHelper html, string fieldName)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | fieldName |
IsDebug(IHtmlHelper)
View Source
public static bool IsDebug(this IHtmlHelper html)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
GetSession(IHtmlHelper)
View Source
public static IAuthSession GetSession(this IHtmlHelper html)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
IsAuthenticated(IHtmlHelper)
View Source
public static bool IsAuthenticated(this IHtmlHelper html)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
UserProfileUrl(IHtmlHelper)
View Source
public static string UserProfileUrl(this IHtmlHelper html)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ErrorSummary(IHtmlHelper, String)
Alias for ServiceStack Html.ValidationSummary() with comma-delimited field names
View Source
public static HtmlString ErrorSummary(this IHtmlHelper html, string exceptFor)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | exceptFor |
ErrorSummary(IHtmlHelper)
View Source
public static HtmlString ErrorSummary(this IHtmlHelper html)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ErrorSummary(IHtmlHelper, ICollection<String>)
View Source
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
ErrorSummary(IHtmlHelper, ICollection<String>, Dictionary<String, Object>)
View Source
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields, Dictionary<string, object> divAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
Dictionary<System.String,System.Object> | divAttrs |
ErrorSummary(IHtmlHelper, ICollection<String>, Object)
View Source
public static HtmlString ErrorSummary(this IHtmlHelper html, ICollection<string> exceptFields, object divAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
System.Object | divAttrs |
ValidationSummary(IHtmlHelper, ICollection<String>)
View Source
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
ValidationSummary(IHtmlHelper, ICollection<String>, Dictionary<String, Object>)
View Source
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields, Dictionary<string, object> divAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
Dictionary<System.String,System.Object> | divAttrs |
ValidationSummary(IHtmlHelper, ICollection<String>, Object)
View Source
public static HtmlString ValidationSummary(this IHtmlHelper html, ICollection<string> exceptFields, object divAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ICollection<System.String> | exceptFields |
System.Object | divAttrs |
ValidationSuccess(IHtmlHelper, String)
View Source
public static HtmlString ValidationSuccess(this IHtmlHelper html, string message)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | message |
ValidationSuccess(IHtmlHelper, String, Dictionary<String, Object>)
View Source
public static HtmlString ValidationSuccess(this IHtmlHelper html, string message, Dictionary<string, object> divAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | message |
Dictionary<System.String,System.Object> | divAttrs |
HiddenInputs(IHtmlHelper, IEnumerable<KeyValuePair<String, String>>)
View Source
public static HtmlString HiddenInputs(this IHtmlHelper html, IEnumerable<KeyValuePair<string, string>> kvps)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
IEnumerable<KeyValuePair<System.String,System.String>> | kvps |
HiddenInputs(IHtmlHelper, IEnumerable<KeyValuePair<String, Object>>)
View Source
public static HtmlString HiddenInputs(this IHtmlHelper html, IEnumerable<KeyValuePair<string, object>> kvps)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
IEnumerable<KeyValuePair<System.String,System.Object>> | kvps |
HiddenInputs(IHtmlHelper, Object)
View Source
public static HtmlString HiddenInputs(this IHtmlHelper html, object kvps)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | kvps |
FormTextarea(IHtmlHelper, Object)
View Source
public static HtmlString FormTextarea(this IHtmlHelper html, object inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
FormTextarea(IHtmlHelper, Dictionary<String, Object>)
View Source
public static HtmlString FormTextarea(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
FormTextarea(IHtmlHelper, Object, InputOptions)
View Source
public static HtmlString FormTextarea(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormTextarea(IHtmlHelper, Dictionary<String, Object>, InputOptions)
View Source
public static HtmlString FormTextarea(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormSelect(IHtmlHelper, Object)
View Source
public static HtmlString FormSelect(this IHtmlHelper html, object inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
FormSelect(IHtmlHelper, Dictionary<String, Object>)
View Source
public static HtmlString FormSelect(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
FormSelect(IHtmlHelper, Object, InputOptions)
View Source
public static HtmlString FormSelect(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormSelect(IHtmlHelper, Dictionary<String, Object>, InputOptions)
View Source
public static HtmlString FormSelect(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormInput(IHtmlHelper, Object)
View Source
public static HtmlString FormInput(this IHtmlHelper html, object inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
FormInput(IHtmlHelper, Dictionary<String, Object>)
View Source
public static HtmlString FormInput(this IHtmlHelper html, Dictionary<string, object> inputAttrs)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
FormInput(IHtmlHelper, Object, InputOptions)
View Source
public static HtmlString FormInput(this IHtmlHelper html, object inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormInput(IHtmlHelper, Dictionary<String, Object>, InputOptions)
View Source
public static HtmlString FormInput(this IHtmlHelper html, Dictionary<string, object> inputAttrs, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
ServiceStack.InputOptions | inputOptions |
FormControl(IHtmlHelper, Object, String, InputOptions)
View Source
public static HtmlString FormControl(this IHtmlHelper html, object inputAttrs, string tagName, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | inputAttrs |
System.String | tagName |
ServiceStack.InputOptions | inputOptions |
FormControl(IHtmlHelper, Dictionary<String, Object>, String, InputOptions)
View Source
public static HtmlString FormControl(this IHtmlHelper html, Dictionary<string, object> inputAttrs, string tagName, InputOptions inputOptions)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Dictionary<System.String,System.Object> | inputAttrs |
System.String | tagName |
ServiceStack.InputOptions | inputOptions |
BundleJs(IHtmlHelper, BundleOptions)
View Source
public static HtmlString BundleJs(this IHtmlHelper html, BundleOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.BundleOptions | options |
BundleCss(IHtmlHelper, BundleOptions)
View Source
public static HtmlString BundleCss(this IHtmlHelper html, BundleOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.BundleOptions | options |
BundleHtml(IHtmlHelper, BundleOptions)
View Source
public static HtmlString BundleHtml(this IHtmlHelper html, BundleOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.BundleOptions | options |
Exec<T>(IHtmlHelper, Func<T>, out Exception)
View Source
public static T Exec<T>(this IHtmlHelper html, Func<T> fn, out Exception ex)
Returns
<T>
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Func<<T>> | fn |
Exception | ex |
Type Parameters
T
TextDump(IHtmlHelper, Object)
View Source
public static string TextDump(this IHtmlHelper html, object target)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | target |
TextDump(IHtmlHelper, Object, TextDumpOptions)
View Source
public static string TextDump(this IHtmlHelper html, object target, TextDumpOptions options)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | target |
ServiceStack.TextDumpOptions | options |
HtmlDump(IHtmlHelper, Object)
View Source
public static HtmlString HtmlDump(this IHtmlHelper html, object target)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | target |
HtmlDump(IHtmlHelper, Object, HtmlDumpOptions)
View Source
public static HtmlString HtmlDump(this IHtmlHelper html, object target, HtmlDumpOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.Object | target |
ServiceStack.HtmlDumpOptions | options |
GetNavItems(IHtmlHelper)
View Source
public static List<NavItem> GetNavItems(this IHtmlHelper html)
Returns
List<ServiceStack.NavItem>
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
GetNavItems(IHtmlHelper, String)
View Source
public static List<NavItem> GetNavItems(this IHtmlHelper html, string key)
Returns
List<ServiceStack.NavItem>
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | key |
Nav(IHtmlHelper)
View Source
public static HtmlString Nav(this IHtmlHelper html)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Nav(IHtmlHelper, NavOptions)
View Source
public static HtmlString Nav(this IHtmlHelper html, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.NavOptions | options |
Nav(IHtmlHelper, List<NavItem>)
View Source
public static HtmlString Nav(this IHtmlHelper html, List<NavItem> navItems)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
Nav(IHtmlHelper, List<NavItem>, NavOptions)
View Source
public static HtmlString Nav(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
ServiceStack.NavOptions | options |
Navbar(IHtmlHelper)
View Source
public static HtmlString Navbar(this IHtmlHelper html)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
Navbar(IHtmlHelper, NavOptions)
View Source
public static HtmlString Navbar(this IHtmlHelper html, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.NavOptions | options |
Navbar(IHtmlHelper, List<NavItem>)
View Source
public static HtmlString Navbar(this IHtmlHelper html, List<NavItem> navItems)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
Navbar(IHtmlHelper, List<NavItem>, NavOptions)
View Source
public static HtmlString Navbar(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
ServiceStack.NavOptions | options |
NavLink(IHtmlHelper, NavItem)
View Source
public static HtmlString NavLink(this IHtmlHelper html, NavItem navItem)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.NavItem | navItem |
NavLink(IHtmlHelper, NavItem, NavOptions)
View Source
public static HtmlString NavLink(this IHtmlHelper html, NavItem navItem, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.NavItem | navItem |
ServiceStack.NavOptions | options |
NavButtonGroup(IHtmlHelper)
View Source
public static HtmlString NavButtonGroup(this IHtmlHelper html)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
NavButtonGroup(IHtmlHelper, NavOptions)
View Source
public static HtmlString NavButtonGroup(this IHtmlHelper html, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
ServiceStack.NavOptions | options |
NavButtonGroup(IHtmlHelper, List<NavItem>)
View Source
public static HtmlString NavButtonGroup(this IHtmlHelper html, List<NavItem> navItems)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
NavButtonGroup(IHtmlHelper, List<NavItem>, NavOptions)
View Source
public static HtmlString NavButtonGroup(this IHtmlHelper html, List<NavItem> navItems, NavOptions options)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
List<ServiceStack.NavItem> | navItems |
ServiceStack.NavOptions | options |
CssIncludes(IHtmlHelper, String[])
View Source
public static HtmlString CssIncludes(this IHtmlHelper html, params string[] cssFiles)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String[] | cssFiles |
JsIncludes(IHtmlHelper, String[])
View Source
public static HtmlString JsIncludes(this IHtmlHelper html, params string[] jsFiles)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String[] | jsFiles |
SvgImage(IHtmlHelper, String)
View Source
public static HtmlString SvgImage(this IHtmlHelper html, string name)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
SvgImage(IHtmlHelper, String, String)
View Source
public static HtmlString SvgImage(this IHtmlHelper html, string name, string fillColor)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
System.String | fillColor |
SvgDataUri(IHtmlHelper, String)
View Source
public static HtmlString SvgDataUri(this IHtmlHelper html, string name)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
SvgDataUri(IHtmlHelper, String, String)
View Source
public static HtmlString SvgDataUri(this IHtmlHelper html, string name, string fillColor)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
System.String | fillColor |
SvgBackgroundImageCss(IHtmlHelper, String)
View Source
public static HtmlString SvgBackgroundImageCss(this IHtmlHelper html, string name)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
SvgBackgroundImageCss(IHtmlHelper, String, String)
View Source
public static HtmlString SvgBackgroundImageCss(this IHtmlHelper html, string name, string fillColor)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | name |
System.String | fillColor |
SvgInBackgroundImageCss(IHtmlHelper, String)
View Source
public static HtmlString SvgInBackgroundImageCss(this IHtmlHelper html, string svg)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | svg |
SvgFill(IHtmlHelper, String, String)
View Source
public static HtmlString SvgFill(this IHtmlHelper html, string svg, string color)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | svg |
System.String | color |
SvgBaseUrl(IHtmlHelper)
View Source
public static string SvgBaseUrl(this IHtmlHelper html)
Returns
System.String
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
GetAbsoluteUrl(IHtmlHelper, String)
View Source
public static HtmlString GetAbsoluteUrl(this IHtmlHelper html, string virtualPath)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | virtualPath |
Gateway(IHtmlHelper)
View Source
public static IServiceGateway Gateway(this IHtmlHelper html)
Returns
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
RedirectIfNotAuthenticated(IHtmlHelper, String)
View Source
public static void RedirectIfNotAuthenticated(this IHtmlHelper html, string redirect = null)
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | redirect |
RedirectToAsync(IHtmlHelper, String)
View Source
public static Task RedirectToAsync(this IHtmlHelper html, string path)
Returns
Task
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | path |
RedirectTo(IHtmlHelper, String)
View Source
public static HtmlString RedirectTo(this IHtmlHelper html, string path)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | path |
HasRole(IHtmlHelper, String)
View Source
public static bool HasRole(this IHtmlHelper html, string role)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | role |
HasPermission(IHtmlHelper, String)
View Source
public static bool HasPermission(this IHtmlHelper html, string permission)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | permission |
AssertRole(IHtmlHelper, String, String, String)
View Source
public static HtmlString AssertRole(this IHtmlHelper html, string role, string message = null, string redirect = null)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | role |
System.String | message |
System.String | redirect |
AssertRoleAsync(IHtmlHelper, String, String, String)
View Source
public static Task AssertRoleAsync(this IHtmlHelper html, string role, string message = null, string redirect = null)
Returns
Task
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | role |
System.String | message |
System.String | redirect |
AssertPermission(IHtmlHelper, String, String, String)
View Source
public static HtmlString AssertPermission(this IHtmlHelper html, string permission, string message = null, string redirect = null)
Returns
HtmlString
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | permission |
System.String | message |
System.String | redirect |
AssertPermissionAsync(IHtmlHelper, String, String, String)
View Source
public static Task AssertPermissionAsync(this IHtmlHelper html, string permission, string message = null, string redirect = null)
Returns
Task
Parameters
Type | Name |
---|---|
IHtmlHelper | html |
System.String | permission |
System.String | message |
System.String | redirect |