I want to create a custom asp.net mvc3 helper .
To use that helper, I should write syntax like below
@Html.DisplayMyCustomHelper(model => model.FullName)
Expected Output
Full Name (Value Picked from model's Display attribute)= Current Value Of Property
Eg:
public Class User
{
[Display(Name="Full Name")]
public string FullName{get;set;}
}
User = new User{FullName="Tom Cruise"};
Inside Razor
@model User
@Html.DisplayMyCustomHelper(model => model.FullName)
Expected OutPut
Full Name= Tom Cruise
How can i do this?