@Html.EditorFor(model => model.ToEmail, new { htmlAttributes = new { @class = "form-control", @placeholder = "Enter Your EmailID...!!!" } })
@Html.EditorFor(model => model, new { htmlAttributes = new { @class = "form-control" }, })
EditorFor
What's New in ASP.NET MVC 5.1 | Microsoft Docs[^]: We now allow passing in HTML attributes in EditorFor as an anonymous object.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)