I have a model:
[DataType(DataType.EmailAddress)]
[DisplayFormat(ConvertEmptyStringToNull = true)]
[Display(Prompt = \"Email Address\")]
public string Email { ge
In your controller method that renders view say
ViewData["Name"] = "blabbity blah";
then
@Html.TextBoxFor(u => u.Company, new { @placeholder = @ViewData["Name"] })
Actually better yet you can do this.
public ActionResult Index()
{
NewLogin n = new ClassModel().PopModel();
n.Company = "fsdfsdf";
return View(n);
}
@Html.TextBoxFor(u => u.Company, new { @placeholder = Model.Company })