public static MvcHtmlString ScLabel(this HtmlHelper html, string expression, string ScLabelText)
 {
     //ME - we have to wrap this section in the EditMode so that the ResourceSet knows to use the field render.
     using (new EditMode())
     {
         return(ScLabelExtensions.ScLabelHelper(html,
                                                ModelMetadata.FromStringExpression(expression, html.ViewData),
                                                expression, ScLabelText));
     }
 }
 public static MvcHtmlString ScLabelFor <TModel, TValue>(this HtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, string ScLabelText)
 {
     //ME - we have to wrap this section in the EditMode so that the ResourceSet knows to use the field render.
     using (new EditMode())
     {
         return(ScLabelExtensions.ScLabelHelper((HtmlHelper)html,
                                                ModelMetadata.FromLambdaExpression <TModel, TValue>(expression, html.ViewData),
                                                ExpressionHelper.GetExpressionText((LambdaExpression)expression),
                                                ScLabelText));
     }
 }
 public static MvcHtmlString ScLabelForModel(this HtmlHelper html, string ScLabelText)
 {
     return(ScLabelExtensions.ScLabelHelper(html, html.ViewData.ModelMetadata, string.Empty, ScLabelText));
 }
 public static MvcHtmlString ScLabelForModel(this HtmlHelper html)
 {
     return(ScLabelExtensions.ScLabelForModel(html, (string)null));
 }
 public static MvcHtmlString ScLabelFor <TModel, TValue>(this HtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression)
 {
     return(ScLabelExtensions.ScLabelFor <TModel, TValue>(html, expression, (string)null));
 }
 public static MvcHtmlString ScLabel(this HtmlHelper html, string expression)
 {
     return(ScLabelExtensions.ScLabel(html, expression, (string)null));
 }