Folks,
I am MVC 2 newbie and stuck on this problem:
AccountModuls.cs
public class LogOnModel
{
[Required]
[DisplayName("User name")]
public string UserName { get; set; }
…
}
LogOn.aspx
<%: Html.LabelFor(m => m.UserName) %>
The text “User name” will be finally displayed in the website - based on my definition
[DisplayName("User name")].
No Problem.
But how can I change this text in AccountController.cs?
public ActionResult LogOn()
{
return View();
}