public static MvcHtmlString DisplayFor <TModel, TValue>(
     this HtmlHelper <TModel> html,
     Expression <Func <TModel, TValue> > expression,
     string templateName,
     string htmlFieldName
     )
 {
     return(TemplateHelpers.TemplateFor(
                html,
                expression,
                templateName,
                htmlFieldName,
                DataBoundControlMode.ReadOnly,
                null /* additionalViewData */
                ));
 }
Beispiel #2
0
 public static MvcHtmlString EditorFor <TModel, TValue>(
     this HtmlHelper <TModel> html,
     Expression <Func <TModel, TValue> > expression
     )
 {
     return(TemplateHelpers.TemplateFor(
                html,
                expression,
                null /* templateName */
                ,
                null /* htmlFieldName */
                ,
                DataBoundControlMode.Edit,
                null /* additionalViewData */
                ));
 }
 public static MvcHtmlString DisplayFor <TModel, TValue>(
     this HtmlHelper <TModel> html,
     Expression <Func <TModel, TValue> > expression,
     object additionalViewData
     )
 {
     return(TemplateHelpers.TemplateFor(
                html,
                expression,
                null /* templateName */
                ,
                null /* htmlFieldName */
                ,
                DataBoundControlMode.ReadOnly,
                additionalViewData
                ));
 }
Beispiel #4
0
 public static MvcHtmlString EditorFor <TModel, TValue>(
     this HtmlHelper <TModel> html,
     Expression <Func <TModel, TValue> > expression,
     string templateName,
     string htmlFieldName,
     object additionalViewData
     )
 {
     return(TemplateHelpers.TemplateFor(
                html,
                expression,
                templateName,
                htmlFieldName,
                DataBoundControlMode.Edit,
                additionalViewData
                ));
 }