コード例 #1
0
 public static IHtmlString Label <TModel>(this HtmlHelpers <TModel> helper, string labelText, string labelFor, object attributes)
 {
     return(Label(helper, labelText, labelFor, TypeHelper.ObjectToDictionary(attributes)));
 }
コード例 #2
0
 public static IHtmlString LabelFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, IDictionary <string, object> htmlAttributes)
 {
     return(Label(helper, ExpressionHelper.GetExpessionDisplayName(expression), ExpressionHelper.GetExpressionText(expression), TypeHelper.ObjectToDictionary(htmlAttributes)));
 }