I have the following model property:
[DataType(DataType.EmailAddress)]
public string EmailAddress { get; set; }
When I use the displayfor:
@Html.DisplayFor(modelItem => item.EmailAddress)
it adds a ‘mailto’ anchor to the text. Is there anyway I can specify for it not to include this?
Thanks
You can use one of the followings.
OR