I have this controller:
public ActionResult Index(UserDetails user)
{
user.UserEmail = "Email";
return View();
}
And this lines
@Html.DisplayNameFor(model => model.UserEmail)
@Html.EditorFor(model => model.UserEmail)
How can I past a value from the controller in the view (in the input box for the UserEmail)?
Thanks for your help Stefan