Example #1
0
 public static bool FormCheckValue(this HtmlHelper html, string name) =>
 ViewUtils.FormCheckValue(html.GetRequest(), name);
Example #2
0
 public static string GetParam(this HtmlHelper html, string name) =>
 ViewUtils.GetParam(html.GetRequest(), name);
Example #3
0
 public static string FormValue(this HtmlHelper html, string name, string defaultValue) =>
 ViewUtils.FormValue(html.GetRequest(), name, defaultValue);
Example #4
0
 public static string[] FormValues(this HtmlHelper html, string name) =>
 ViewUtils.FormValues(html.GetRequest(), name);
Example #5
0
 public static string Query(this HtmlHelper html, string name) => html.GetRequest().QueryString[name];
Example #6
0
 public static string FormValue(this HtmlHelper html, string name) =>
 ViewUtils.FormValue(html.GetRequest(), name, null);
Example #7
0
 public static bool HasErrorStatus(this HtmlHelper html) =>
 ViewUtils.HasErrorStatus(html.GetRequest());
Example #8
0
 public static string Form(this HtmlHelper html, string name) => html.GetRequest().FormData[name];
Example #9
0
 public static object GetItem(this HtmlHelper html, string key) =>
 html.GetRequest().GetItem(key);
Example #10
0
 public static ResponseStatus GetErrorStatus(this HtmlHelper html) =>
 ViewUtils.GetErrorStatus(html.GetRequest());
Example #11
0
 public static HtmlString NavButtonGroup(this HtmlHelper html, List <NavItem> navItems, NavOptions options) =>
 ViewUtils.NavButtonGroup(navItems, options.ForNavButtonGroup().WithDefaults(html.GetRequest())).ToHtmlString();
Example #12
0
 public static HtmlString NavLink(this HtmlHelper html, NavItem navItem, NavOptions options) =>
 ViewUtils.NavLink(navItem, options.ForNavLink().WithDefaults(html.GetRequest())).ToHtmlString();
Example #13
0
 public static HtmlString FormControl(this HtmlHelper html, Dictionary <string, object> inputAttrs, string tagName, InputOptions inputOptions) =>
 ViewUtils.FormControl(html.GetRequest(), inputAttrs, tagName, inputOptions).ToHtmlString();
Example #14
0
 public static string UserProfileUrl(this HtmlHelper html) =>
 html.GetRequest().GetSession().GetProfileUrl();
Example #15
0
 public static string SvgBaseUrl(this HtmlHelper html) => html.GetRequest().ResolveAbsoluteUrl(HostContext.AssertPlugin <SvgFeature>().RoutePath);