Skip to content

Instantly share code, notes, and snippets.

@OndeVai
Created June 27, 2014 17:01
Show Gist options
  • Save OndeVai/9c627f123dab063f3d21 to your computer and use it in GitHub Desktop.
Save OndeVai/9c627f123dab063f3d21 to your computer and use it in GitHub Desktop.
get full mvc field name for property
var exp = ExpressionHelper.GetExpressionText(expression);
Html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName(_ExpressionText)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment