Пример #1
0
 public static MvcHtmlString Display(this HtmlHelper html, string expression)
 {
     return(TemplateHelpers.Template(
                html,
                expression,
                null /* templateName */
                ,
                null /* htmlFieldName */
                ,
                DataBoundControlMode.ReadOnly,
                null /* additionalViewData */
                ));
 }
Пример #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 */
                ));
 }
Пример #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
                ));
 }
Пример #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
                ));
 }