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