public static IHtmlContent RadioValueButton(this IHtmlHelper htmlHelper, string expression, string value, string text, bool isChecked = false, object inputHtmlAttributes = null, object labelHtmlAttributes = null) { return(SelectListHtmlGenerator.GenerateRadioValueButton(htmlHelper.ViewContext, null, expression, value, text, isChecked, inputHtmlAttributes, labelHtmlAttributes)); }
public static IHtmlContent RadioValueButtonFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, string value, string text, object inputHtmlAttributes = null, object labelHtmlAttributes = null) { var modelExpression = GetModelExpression(htmlHelper, expression); return(SelectListHtmlGenerator.GenerateRadioValueButton(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, value, text, null, inputHtmlAttributes, labelHtmlAttributes)); }