Skip to main content

DisplayTextExtensions

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public static class DisplayTextExtensions

Methods

DisplayText(HtmlHelper, String)

View Source
Declaration
public static MvcHtmlString DisplayText(this HtmlHelper html, string name)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtml
System.Stringname

DisplayTextFor<TModel, TResult>(HtmlHelper<TModel>, Expression<Func<TModel, TResult>>)

View Source
Declaration
public static MvcHtmlString DisplayTextFor<TModel, TResult>(this HtmlHelper<TModel> html, Expression<Func<TModel, TResult>> expression)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>html
System.Linq.Expressions.Expression<System.Func<<TModel>,<TResult>>>expression
Type Parameters
  • TModel
  • TResult