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));
 }