コード例 #1
0
 public static IHtmlContent RadioValue(this IHtmlHelper htmlHelper, string expression, bool inline, string value, string text, bool isChecked, object divHtmlAttributes, object inputHtmlAttributes, object labelHtmlAttributes)
 {
     return(SelectListHtmlGenerator.GenerateRadioValue(htmlHelper.ViewContext, null, expression, inline, value, text, isChecked, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
コード例 #2
0
        public static IHtmlContent RadioValueFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, bool inline, string value, string text, object divHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
        {
            var modelExpression = GetModelExpression(htmlHelper, expression);

            return(SelectListHtmlGenerator.GenerateRadioValue(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, inline, value, text, null, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
        }