Esempio n. 1
0
 public static MvcHtmlString Display(this HtmlHelper html, string expression)
 {
     return(TemplateHelpers.Template(
                html,
                expression,
                null /* templateName */
                ,
                null /* htmlFieldName */
                ,
                DataBoundControlMode.ReadOnly,
                null /* additionalViewData */
                ));
 }
Esempio n. 2
0
 public static MvcHtmlString Editor(
     this HtmlHelper html,
     string expression,
     string templateName,
     string htmlFieldName
     )
 {
     return(TemplateHelpers.Template(
                html,
                expression,
                templateName,
                htmlFieldName,
                DataBoundControlMode.Edit,
                null /* additionalViewData */
                ));
 }
Esempio n. 3
0
 public static MvcHtmlString Display(
     this HtmlHelper html,
     string expression,
     string templateName,
     string htmlFieldName,
     object additionalViewData
     )
 {
     return(TemplateHelpers.Template(
                html,
                expression,
                templateName,
                htmlFieldName,
                DataBoundControlMode.ReadOnly,
                additionalViewData
                ));
 }
Esempio n. 4
0
 public static MvcHtmlString Editor(
     this HtmlHelper html,
     string expression,
     object additionalViewData
     )
 {
     return(TemplateHelpers.Template(
                html,
                expression,
                null /* templateName */
                ,
                null /* htmlFieldName */
                ,
                DataBoundControlMode.Edit,
                additionalViewData
                ));
 }