Inheritance: LineBase
Example #1
0
        public static MvcHtmlString HiddenLine <T, S>(this HtmlHelper helper, TypeContext <T> tc, Expression <Func <T, S> > property, Action <HiddenLine> settingsModifier)
        {
            TypeContext <S> context = Common.WalkExpression(tc, property);

            HiddenLine hl = new HiddenLine(typeof(S), context.Value, context, null, context.PropertyRoute);

            Common.FireCommonTasks(hl);

            if (settingsModifier != null)
            {
                settingsModifier(hl);
            }

            return(Hidden(helper, hl));
        }
Example #2
0
 public static MvcHtmlString Hidden(this HtmlHelper helper, HiddenLine hiddenLine)
 {
     return(helper.Hidden(hiddenLine.Prefix, hiddenLine.UntypedValue?.ToString() ?? "", hiddenLine.ValueHtmlProps));
 }